1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
|
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kappname "&kchart;">
<!ENTITY package "koffice">
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE">
<!ENTITY dataeditor "Data Editor">
]>
<book lang="&language;">
<bookinfo>
<title>The &kchart; Handbook</title>
<!-- CURRENTLY MAINTAINED BY RAPHAEL LANGERHORST -->
<authorgroup>
<author>
&Jonathan.Drews; &Jonathan.Drews.mail;
</author>
<author>
<firstname>Raphael</firstname>
<surname>Langerhorst</surname>
<email>[email protected]</email>
</author>
<!--
<othercredit role="developer">
&Matthias.Kalle.Dalheimer; &Matthias.Kalle.Dalheimer.mail;
<contrib>Developer</contrib>
</othercredit>
-->
<!-- TRANS:ROLES_OF_TRANSLATORS -->
</authorgroup>
<legalnotice>&FDLNotice;</legalnotice>
<date>2006-01-30</date>
<releaseinfo>1.5.0</releaseinfo>
<abstract>
<para>
&kchart; is an application for visualizing numerical data. It has many
different chart types available like bar graphs, line plots, pie charts,
ring charts and more.
</para>
<para>
&kchart; is a &koffice; component and is very well integrated with &kspread;
to allow visualization of spreadsheet data. But it is also possible to use
&kchart; as a standalone application or integrate it in other &koffice;
components.
</para>
</abstract>
<keywordset>
<keyword>KDE</keyword>
<keyword>kdeutils</keyword>
<keyword>Kchart</keyword>
<keyword>chart</keyword>
<keyword>graph</keyword>
<keyword>plot</keyword>
</keywordset>
</bookinfo>
<chapter id="introduction">
<title>Introduction</title>
<para>
&kchart; is a tool for visualizing numerical data. It can be used
as a standalone application with a simple &dataeditor;. But as a
&koffice; component it offers very flexible integration. &kspread;
uses the &kchart; component for charts and diagrams. &kspread;
can be seen as a very powerful data provider for &kchart; input.
</para>
<para>
But embedding is not limited to &kspread;. A &kchart; chart can
be embedded in many of the &koffice; components like &kword;,
&kpresenter; or &kivio;.
</para>
<para>
To start with we will look at the user interface of &kchart;
and how it can be used as a standalone application. When we
are familiar with &kchart; we will investigate the charting
capabilities it offers together with &kspread;.
</para>
</chapter>
<chapter id="userinterface">
<title>The User Interface</title>
<sect1 id="mainuserinterface">
<title>Main Application Interface</title>
<para>
We will take a look at a simple example to get to know &kchart;.
Along the way we will also discuss the user interface at length
so you will learn about many details of the component.
</para>
<para>
When you start &kchart; as a standalone application you get
the usual startup dialog where you can choose between different
templates or load existing chart documents.
</para>
<screenshot>
<screeninfo>&kchart; Startup Dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-startupdialog.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
You can choose between various ways to startup &kchart;. On the left, you can
see three options: <guilabel>Recent Documents</guilabel>,
<guilabel>Charts</guilabel> templates and <guilabel>Open Existing
Document...</guilabel>. The first option lets you choose between
recently opened charts, the second is for creating a
new chart from various templates and the third is for opening an existing
chart with a file dialog.
</para>
<para>
For now we will start with the default template. Select
<guilabel>Charts</guilabel> in the left area and then select
<guilabel>Bar Chart</guilabel> in the main template area. Normally
this template should already be selected after choosing
<guilabel>Charts</guilabel>.
</para>
<para>
If you decide to always start &kchart; with a selected template as default
you can also check <guilabel>Always use this template</guilabel>.
</para>
<para>
Click the <guibutton>Use This Template</guibutton>
button on the right, under the template preview.
</para>
<screenshot>
<screeninfo>&kchart; User Interface</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-default.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
As you can see, there is already some example data present. &kchart;
offers the default toolbar for creating a new chart, saving, loading
and printing the chart. The second toolbar offers icons for editing
the data, configuring the chart or using a configuration wizard.
You can also switch between different chart types with the rest
of the icons. Note that some of these chart types also have subtypes.
</para>
<para>
The menu offers all standard entries, including shortcut and
toolbar configuration and page layout for printing.
</para>
<para>
Note that data editing is not available if you use &kchart; from
within &kspread; because all data is provided by the spreadsheet.
As a standalone application the &dataeditor; is an important part
of the application.
</para>
</sect1>
<sect1 id="wizard">
<title>Chart Wizard</title>
<para>
The wizard is actually a very useful part of &kchart; for quickly
setting up some basic options like chart type and chart labelling
in a few easy steps.
</para>
<para>
You can run the wizard at any time, it will always preserve your data
and other configuration. Also, you can change every single configuration
you do with the wizard later as well, without losing anything. In fact
the wizard is just a way to set some basic and important options
in one go.
</para>
<para>
To start the wizard simply click on the
<inlinemediaobject><imageobject>
<imagedata fileref="cr22-action-wizard.png" format="PNG"/>
</imageobject></inlinemediaobject> icon in the toolbar.
</para>
<sect2 id="wizard-data">
<title>Step 0 - Choosing the Data source</title>
<screenshot>
<screeninfo>Wizard Step 0 - Data source</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-wizard0.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The first step in the wizard is to actually choose the data source.
If the selected data area does not match the data you want,
select the data now.</para>
<para>
Include cells that you want to use as row and column labels,
if you want them in the chart.</para>
<para>
Then go to the next step with the <guibutton>Next ></guibutton>
button. You can also choose <guibutton>Finish</guibutton> at any step
if you are already comfortable with the setup done so far.
</para>
</sect2>
<sect2 id="wizard-charttype">
<title>Step 1 - Choosing the Chart Type</title>
<screenshot>
<screeninfo>Wizard Step 1 - Chart Type</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-wizard1.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The next step in the wizard is to actually choose the primary
type of the chart. This selection has the most important
impact on how your data will be presented. Thus it should
be chosen well. You can change the type of the chart with the
icons in the toolbar without losing any data or configuration
later on. In fact it is even considered normal to test all the
various chart types to find the best fitting.
</para>
<para>
In this example we choose the <guilabel>Lines</guilabel> type. Depending on the
chosen chart type different options are available in the
following steps.
</para>
<para>
After chosing the type you can get to the next step with
the <guibutton>Next ></guibutton> button.
</para>
</sect2>
<sect2 id="wizard-chartsubtype">
<title>Step 2 - Choosing the Subtype</title>
<screenshot>
<screeninfo>Wizard Step 2 - Chart Sub Type</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-wizard2.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
In case the chosen chart type has various sub types you can
choose it in the second step. If the chart type has no sub types,
this step will be skipped automatically.
</para>
<para>
If you decide to change the sub type later, you can do this
in the appropriate configuration dialog which will be shown
later.
</para>
<para>
You can simply leave the default selection and go to the next
step. Of course you can chose any desired sub type if you want.
</para>
</sect2>
<sect2 id="wizard-labelsandlegend">
<title>Step 3 - Labels and Legend, Fonts</title>
<screenshot>
<screeninfo>Wizard Step 3 - Labels and Legend</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-wizard3.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
In the third step you can set the text for the chart title,
the axes and the legend. You can also configure the desired
font in detail for each of these.
</para>
</sect2>
<sect2 id="wizard-axes">
<title>Step 4 - Axes</title>
<screenshot>
<screeninfo>Wizard Step 4 - Axes</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-wizard4.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The last step of the wizard lets you set various options for
the axes and other options, depending on the chart type.
</para>
<para>
You can either choose <guibutton>Finish</guibutton> to accept
the options for your chart, go <guibutton>< Back</guibutton> and
change various things or simply dismiss all options from the
wizard by choosing <guibutton>Cancel</guibutton>.
</para>
<para>
If you choose <guibutton>Finish</guibutton> all your choices in the wizard will
be integrated in the chart and you can continue to enter
some data and do some fine tuning of various options.
</para>
<para>
Remember that the chart configuration dialog has many more
options available, we will discuss these later.
</para>
</sect2>
</sect1>
<sect1 id="dataeditorinterface">
<title>The &dataeditor;</title>
<para>
The &dataeditor; can be reached by selecting <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Edit Data...</guimenuitem>
</menuchoice> from the menu or by clicking on the
<inlinemediaobject><imageobject>
<imagedata fileref="cr22-action-data.png" format="PNG"/>
</imageobject></inlinemediaobject> icon in the toolbar.
</para>
<screenshot>
<screeninfo>&dataeditor; in standalone mode</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-dataeditor.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The &dataeditor; can be used to set all values. You can also define
the number of rows and columns.
</para>
<para> Depending on the chart type rows and columns have different
representations. Each row can generally be considered to be one data
series or data set while each column represents the values of all
data sets at a certain location.
</para>
<para>
The name of a data set can be changed by clicking on the row header
(left of the first column with values). The name of a column can
be changed by clicking on the column header (above the first
row).
</para>
<para>
The number of rows and columns can be adjusted to fit the needs.
Since version 1.4 the restriction to 16 rows and 16 columns has been
eliminated.
</para>
</sect1>
<sect1 id="configurationinterface">
<title>Chart Configuration</title>
<para>
&kchart; offers many configuration options for the chart. These are
available in standalone mode and when embedded in &kspread;
</para>
<para>
Depending on the chart type you have selected, the available
options are slightly different. Let's choose the line chart
type by clicking on the <inlinemediaobject><imageobject>
<imagedata fileref="cr22-action-chart_line.png" format="PNG"/>
</imageobject></inlinemediaobject> icon in the toolbar.
</para>
<para>
To get to the chart configuration dialog, select <menuchoice>
<guimenu>Format</guimenu>
<guimenuitem>Chart...</guimenuitem>
</menuchoice> from the menu or click on the
<inlinemediaobject><imageobject>
<imagedata fileref="cr22-action-options.png" format="PNG"/>
</imageobject></inlinemediaobject> icon in the toolbar.
You might need to click on the right or left arrow at the top of the
dialog to get all pages if the width of the dialog is too small.</para>
<sect2 id="config-rowcol">
<title>Row and Column Swapping</title>
<screenshot>
<screeninfo>Configuration page 1 - Row/column swapping</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config1.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The first configuration page can be used to swap the
interpretation of rows and columns.
By default one row is considered to be a data set
and each column holds the individual values of the data
series. Here you can choose to have a each column hold
one data set. Note that the values are not really swapped
but only their interpretation.
</para>
</sect2>
<sect2 id="config-subtype">
<title>Chart Subtype</title>
<screenshot>
<screeninfo>Configuration page 2 - Chart Subtype</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config2.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The second page can be used to select the desired sub type of
a chart. The available sub types depend on the chart type, in
this case the line chart. Some chart types have no sub type
at all in which case this configuration page is not shown.
You also get a preview for each subtype.
</para>
<para>
Remember that the chart type can be chosen from the toolbar while
the subtype can be set through this configuration dialog.
</para>
</sect2>
<sect2 id="config-titlefooter">
<title>Header and Footer</title>
<screenshot>
<screeninfo>Configuration page 3 - Header and Footer</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config3.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
On the third page you can set the title, the subtitle and the footer of
the chart, each with individual font settings.
</para>
</sect2>
<sect2 id="config-legend">
<title>Legend</title>
<screenshot>
<screeninfo>Configuration page 4 - Legend</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config4.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The legend configuration page lets you set all aspects of the legend.
The legend contains the names for all data sets with the respective
colors, this is important to identify the data on the chart.
</para>
<para>
The <guilabel>General</guilabel> box holds the title of the legend, which is displayed
at the top of the legend box.
The <guilabel>Position</guilabel> box can be used to place the legend at various locations
on the chart. Use the central button to hide the legend.
</para>
<para>
The <guilabel>Font</guilabel> box can be used to set
different fonts for the legend title and the individual entries.
Additionally you can set different colors in the <guilabel>Color</guilabel> box.
</para>
</sect2>
<sect2 id="config-axes">
<title>Axes</title>
<screenshot>
<screeninfo>Configuration page 5 - Axes</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config5.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The <guilabel>Axes</guilabel> page holds configuration for the chart axes. This
page highly depends on the chart type chosen. For the line
chart you can set linear or logarithmic scales and turn the grid
on and off.
</para>
</sect2>
<sect2 id="config-colors">
<title>Colors</title>
<screenshot>
<screeninfo>Configuration page 6 - Colors</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config6.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
On the <guilabel>Colors</guilabel> page you can choose the colors for the individual
data sets. You can also set colors for some general chart parts
like axes <guilabel>Line color</guilabel> and <guilabel>Grid color</guilabel>.
</para>
</sect2>
<sect2 id="config-font">
<title>Font</title>
<screenshot>
<screeninfo>Configuration page 7 - Font</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config7.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
The <guilabel>Font</guilabel> page can be used to configure various fonts like
titles, axes labels and so on. Some of these fonts can
be set on other pages as well, but on the font page you
have them all in one place.
</para>
</sect2>
<sect2 id="config-background">
<title>Background</title>
<screenshot>
<screeninfo>Configuration page 8 - Background </screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-config8.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
On the <guilabel>Background</guilabel> page you will find various options for tweaking
the background settings of the chart. You can either choose
different background colors or even a background picture.
</para>
</sect2>
<sect2 id="config-more">
<title>More...</title>
<para>
This short overview of the configuration options gave you an
introduction to the configuration possibilities of your chart,
it is by no means complete. Different chart types like <guilabel>Bar</guilabel>,
<guilabel>Line</guilabel> and <guilabel>Pie</guilabel>, have
additional specialised configuration pages and you are welcome
to look around, try different chart types and look at the
configuration possibilities. Use the tooltips and read the
What's This? help. To use the What's This? help simply
click on the question mark on the window
decoration and then click on the area of the configuration
page you want get more information on.
</para>
</sect2>
</sect1>
</chapter>
<chapter id="kchartstandalone">
<title>&kchart; as a standalone Application</title>
<para>
The previous chapter described the user interface,
various configuration options, data editing and the wizard
in detail.
</para>
<para>
This chapter gives real-life examples on how to use
&kchart; in various situations as a standalone application.
The purpose is to give you some understanding of the
way &kchart; works and how various parts relate to each other.
</para>
<sect1 id="kchartexample-profit">
<title>Presenting Sales Figures</title>
<sect2>
<title>Warming up</title>
<para>
This first example which might often be encountered in real
life is presenting sales figures, or in this particular case
profit.
</para>
<para>
Imagine you own a company that has three main categories of
business: sales, support and training. And you would like
to present the profit of these categories over some years. Making
a graphical statistics is certainly a good idea. &kchart; can
help you here.
</para>
</sect2>
<sect2>
<title>Getting started</title>
<para>
Run &kchart; and select the <guilabel>Blank Worksheeet</guilabel>.
</para>
<screenshot>
<screeninfo>Starting with a blank chart</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-1.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
Hit the button <guibutton>Use This Template</guibutton> to get started. &kchart; will present to you
a completely empty document. That's good, we just need to enter
some data and do some basic configuration to get a nice chart.
</para>
<screenshot>
<screeninfo>A blank chart</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-2.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
</sect2>
<sect2>
<title>Getting the numbers in</title>
<para>
The first step, and probably the most important, is to get the
actual data into the chart. This can easily be done with the
&dataeditor;. As usual you can get to the data editor by
clicking on the <inlinemediaobject><imageobject>
<imagedata fileref="cr22-action-data.png" format="PNG"/>
</imageobject></inlinemediaobject> icon in the toolbar.
</para>
<para>
You will notice that no data is present. Also note that
the number of data rows and columns is set to a minimum,
which is 1.
</para>
<para>
Now, just enter the data you see in the next screenshot.
Note that you can increase the number of rows and columns
with the spin boxes in the lower left corner. The names
of the rows and columns themselves can be changed by
clicking on them.
</para>
<screenshot>
<screeninfo>The Data</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-3.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
Simply click the <guibutton>OK</guibutton> button when you are done. This will present
to you a simple bar chart.
</para>
<screenshot>
<screeninfo>Simple chart without fine tuning</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-4.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
Read on to do some fine tuning!
</para>
</sect2>
<sect2>
<title>Fine Tuning</title>
<para>
We will now do some fine tuning and put a title on the chart.
And, we will add a nice 3D effect to the bars as well.
</para>
<para>
Start up the configuration dialog by clicking on the
<inlinemediaobject><imageobject>
<imagedata fileref="cr22-action-options.png" format="PNG"/>
</imageobject></inlinemediaobject> icon in the toolbar.
</para>
<sect3>
<title>Title</title>
<screenshot>
<screeninfo>Options - Title</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-5.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
Let's start with labeling. Go to the <guilabel>Header/Footer</guilabel>
page and enter the text like in the above screenshot.
</para>
</sect3>
<sect3>
<title>X-Axis Font Settings</title>
<para>
The next step is to make the font of the x axis a bit bigger. You
can do this on the <guilabel>Font</guilabel> page.
</para>
<screenshot>
<screeninfo>Options - Fonts</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-6.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
Choose the <guilabel>X-Axis</guilabel> item and click on the
<guibutton>Font...</guibutton> button. Choose a somewhat
larger font like in the following screenshot.
</para>
<screenshot>
<screeninfo>Options - X-Axis Font</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-7.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
Note that the font size is set to <guilabel>Relative</guilabel>.
This means that the font is automatically scaled according
to the overall chart size. This is quite usefull and most
of the time what the average user expects.
</para>
</sect3>
<sect3>
<title>Giving it a 3D Look</title>
<para>
Some types of charts like <guilabel>Bar</guilabel> and <guilabel>Pie</guilabel>
have an additional configuration page.
</para>
<screenshot>
<screeninfo>Options - 3D Parameters</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-8.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
To get a 3D effect for this type of chart, go to the <guilabel>Bar</guilabel>
page and simply activate <guilabel>3D bar</guilabel>.
</para>
<para>
That's all what we need for a reasonable looking chart. Note
that much of this configuration could also have been achieved
with the wizard. It's basically a matter of taste what you
use. Experienced users will likely use the full option dialog
we used in this example.
</para>
<para>
Simply accept the settings by clicking on the <guibutton>OK</guibutton>
button.
</para>
</sect3>
</sect2>
<sect2>
<title>Final output</title>
<para>
The final chart will look like the next screenshot.
</para>
<screenshot>
<screeninfo>Final Chart</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-example1-9.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>
You might want to enlarge the application window to see the chart
in full size. Note how the fonts get larger in relation to the
chart size.
</para>
<para>
There are certainly aspects to improve further for your personal
taste. For example try to make the title font even bigger.
Just experiment further, this way you will get to know a lot
of the &kchart; application.
</para>
<para>
Finally you can save the chart from the <guimenu>File</guimenu>
menu and quit &kchart; with
<menuchoice><guimenu>File</guimenu>
<guimenuitem>Quit</guimenuitem>
</menuchoice>
</para>
</sect2>
<sect2>
<title>Exporting to Graphic Formats: SVG, PNG, JPG, &krita;, &karbon14;, Gimp and
more</title>
<para>
For further processing, the chart can also be exported as a graphics file.
Many formats are available. Using either PNG, SVG, JPG or &krita; will likely
produce the best result.
</para>
<para>
To export your current chart simply choose
<menuchoice><guimenu>File</guimenu>
<guimenuitem>Export...</guimenuitem></menuchoice>
from the menu and select the desired file format from the filter box.
</para>
</sect2>
</sect1>
</chapter>
<!-- HANDBOOK REWRITTEN UP TO HERE BY RAPHAEL LANGERHORST -->
<!-- HANDBOOK WRITTEN FROM HERE BY JONATHAN DREWS -->
<!-- HANDBOOK UPDATED FROM HERE BY RAPHAEL LANGERHORST -->
<chapter id="kchartinkspread">
<title>Using &kchart; in &kspread;</title>
<para>
In addition to standalone operation, &kchart; is designed to be used with
&kspread;. This chapter describes how to create and manipulate charts
from within &kspread;.
</para>
<para>
Remember that &kchart; embedding into &kspread; is a very commonly
used and well implemented feature, the examples in this chapter should
just get you started.
</para>
<para>
As soon as you have created a chart in &kspread; you can take full
advantage of all the &kchart; features by double clicking on the
chart area. This is necessary to get to all advanced configuration
options. Keep in mind that the data editor is not available when
&kchart; is embedded into &kspread;. This is obvious since &kspread;
serves, from &kchart;'s point of view, as a powerful data
provider.
</para>
<para>
Swapping x and y is of particular interest when working with &kspread;.
You can swap interpretation of x and y axis in &kchart; in the
Data Format settings which can be accessed through the Edit menu
or the context menu when right clicking on the chart itself. As noted
above you need to be inside the &kchart; component in order to access
these settings, which can be done by double clicking the embedded
chart in your spreadsheet.
</para>
<sect1 id="main_window">
<title>Plotting with &kchart;</title>
<para>To plot with &kchart;, when it is embedded in &kspread;, do the following:</para>
<screenshot>
<screeninfo>Picture of toolbars dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-kspread.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<itemizedlist>
<listitem><para>
Highlight the second row of numbers.
</para></listitem>
<listitem><para>
Next click on the <guilabel>Chart</guilabel> button
<inlinemediaobject><imageobject><imagedata fileref="frame_chart.png"
format="PNG"/></imageobject></inlinemediaobject> to create the chart.
</para></listitem>
<listitem><para>Select the options you want from the chart wizard. The
chart Wizard will pop up after you insert the chart.</para></listitem>
</itemizedlist>
<para>
The whole data could also be created using two columns instead of
two rows. If using columns you might want to switch x and y axis
in the &kchart; configuration as described above.
</para>
<para>To make a bar chart for individual items, put the numbers in a
column, as shown below.</para>
<screenshot>
<screeninfo>Picture of toolbars dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="kchart-kspread-bar.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para>The orientation of the numbers determines how the plot will be
made. </para>
<itemizedlist>
<listitem><para>
A row of numbers defines the ordinates for a single plot.
</para></listitem>
<listitem><para>
A column of numbers defines the heights for each bar, in a bar
graph. It also determines the size of the slices in a pie chart.
</para></listitem>
</itemizedlist>
</sect1>
</chapter>
<chapter id="commands">
<title>Command Reference</title>
<sect1 id="kchart-menus">
<title>The Main &kchart; Window</title>
<sect2>
<title>The <guimenu>File</guimenu> Menu</title>
<variablelist>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>New</guimenuitem>
</menuchoice></term>
<listitem><para><action>Creates a new document</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>O</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Open...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Opens a document</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Open Recent</guisubmenu>
</menuchoice></term>
<listitem><para><action>Shows a list of recently opened documents</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Save</guimenuitem>
</menuchoice></term>
<listitem><para><action>Saves the chart to the current file.</action> If the chart
has not yet been saved the file dialog is shown.</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Save As...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Saves the document, the file dialog is used.</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Reload</guimenuitem>
</menuchoice></term>
<listitem><para><action>Reloads the document.</action>
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Import...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Opens a document with any supported format.
The original document will not be modified.</action>
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Export...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Saves a document to any supported format.</action>
The original document will not be modified. You can also choose
among many image formats like PNG, SVG, &krita;, Gimp or JPG.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Mail...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Sends the chart as an email attachment.</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Import Data...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Imports values from a CSV (Comma Separated Values) file, much like
the CSV import in &kspread;. Note that you can specify various
options and different separators (not just commas).</action>
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Create Template From Document...</guimenuitem>
</menuchoice></term>
<listitem><para>Create a &kchart; template
based on this document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Print...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Prints the document</action></para>
<important><para>Make sure the proper print system is selected in the
<guilabel>Print system currently used:</guilabel> section. This option can
be seen after clicking on the <guibutton>Options >></guibutton> button.</para></important></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Print Preview...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Displays a preview of what the printed
document will look like.</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Document Information</guimenuitem>
</menuchoice></term>
<listitem><para><action>Opens a dialog box</action> where you can enter
information about your chart.</para>
<note><para>This document information will be
displayed in the &konqueror; file browser as a tooltip. The tooltips
are pop-ups that show the contents of a file when you move your mouse over
the file icon.</para></note></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>W</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Close</guimenuitem>
</menuchoice></term>
<listitem><para><action>Closes the current chart.</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Quit</guimenuitem>
</menuchoice></term>
<listitem><para><action>Quits</action> &kchart;</para></listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>The <guimenu>Edit</guimenu> Menu</title>
<variablelist>
<varlistentry>
<term><menuchoice>
<guimenu>Edit</guimenu>
<guimenuitem>Edit Data...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Opens the &dataeditor;.</action></para></listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>The <guimenu>Format</guimenu> Menu</title>
<variablelist>
<varlistentry>
<term><menuchoice>
<guimenu>Format</guimenu>
<guimenuitem>Chart...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Opens</action> the <link linkend="configurationinterface">&kchart; Configuration</link>
dialog.</para>
</listitem>
</varlistentry>
</variablelist>
<sect3>
<title>The Configure Tabs</title>
<variablelist>
<varlistentry>
<term><menuchoice>
<guimenu>Data Format...</guimenu>
</menuchoice></term>
<listitem><para><action>Swap row and colums (x/y flipping).</action></para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Chart Sub-type...</guimenu>
</menuchoice></term>
<listitem><para><action>Changes the arrangement of bar graphs.</action></para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Header & Footer...</guimenu>
</menuchoice></term>
<listitem><para><action>Enter the titles you want for your graph here.</action></para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Colors...</guimenu>
</menuchoice></term>
<listitem><para><action>Select graph colors</action>, line colors, grid colors and
axis title and axis label colors here.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Font...</guimenu>
</menuchoice></term>
<listitem><para><action>Select font style and size</action> here. The
series colors can be selected here also. The series refer to the
individual graphs. Each graphed set of data is a series.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Background...</guimenu>
</menuchoice></term>
<listitem><para><action>Select a color or a wallpaper</action> as background for your
graph.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Legend...</guimenu>
</menuchoice></term>
<listitem><para><action>Change title, font and location of the legend</action> box. The
color of the legend box can be changed also.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Page Layout...</guimenu>
</menuchoice></term>
<listitem><para><action>Set the <guilabel>Margins</guilabel> of the page</action> here.</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
<sect2>
<title>The <guimenu>Settings</guimenu> Menu</title>
<para>
<variablelist>
<varlistentry>
<term><menuchoice>
<guimenu>Settings</guimenu>
<guisubmenu>Toolbars</guisubmenu>
</menuchoice></term>
<listitem><para><action>Show/Hide various toolbars</action> (<guimenuitem>File</guimenuitem>,
<guimenuitem>Actions</guimenuitem> and <guimenuitem>Types</guimenuitem>).</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Settings</guimenu>
<guimenuitem>Configure Shortcuts...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Configure key shortcuts for &kchart;.</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Settings</guimenu>
<guimenuitem>Configure Toolbars...</guimenuitem>
</menuchoice></term>
<listitem><para><action>Configure the &kchart; toolbars.</action></para></listitem>
</varlistentry>
</variablelist>
</para>
</sect2>
<sect2>
<title>The <guimenu>Help</guimenu> Menu</title>
&help.menu.documentation;
</sect2>
<sect2>
<title>Configuring Shortcuts</title>
<para>The <menuchoice>
<guimenu>Settings</guimenu><guimenuitem>Configure Shortcuts...</guimenuitem></menuchoice>
allows you to specify shortcuts.</para>
<para>Below is an example of how to configure a shortcut for opening
the chart wizard.</para>
<screenshot>
<screeninfo>Picture of shortcut dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="shortcut.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<itemizedlist>
<listitem><para>
Click on <guibutton>Custom</guibutton>.
</para></listitem>
<listitem><para>
Next click on <guibutton>Primary shortcut:</guibutton>.
</para></listitem>
<listitem><para>
Do <userinput><keycombo
action="seq">&Alt;&Ctrl;<keycap>W</keycap></keycombo></userinput>
and the dialog should disappear. The shortcut is now entered.
</para></listitem>
</itemizedlist>
<para>Pressing the keys <userinput><keycombo
action="seq">&Alt;&Ctrl;<keycap>W</keycap></keycombo></userinput>
now opens the wizard.</para>
</sect2>
<sect2>
<title>Configuring Toolbars</title>
<para>The <menuchoice>
<guimenu>Settings</guimenu><guimenuitem>Configure Toolbars...</guimenuitem></menuchoice>
is used to add additional buttons to the toolbars.</para>
<screenshot>
<screeninfo>Picture of toolbars dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="toolbars.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<itemizedlist>
<listitem>
<para>To add a button to the <guilabel>File</guilabel> toolbar,
</para>
<screenshot>
<screeninfo>Picture of toolbars dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="file-toolbar.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
<para> make sure <guilabel>File
<&koffice;></guilabel> is displayed in the top combo box.
</para></listitem>
<listitem><para>
Click on one of the items in the left hand pane. This item will now be
highlighted showing that it has been selected.
</para></listitem>
<listitem><para>
Next click on the <guiicon>Right arrow</guiicon> button to place it in
the right pane.
</para></listitem>
<listitem><para>
Click on <userinput><guilabel>Apply</guilabel></userinput> and then
click on <userinput><guilabel>OK</guilabel></userinput>
</para></listitem>
</itemizedlist>
<para>The new Item should be in the toolbar. <inlinemediaobject><imageobject>
<imagedata fileref="file-toolbar2.png" format="PNG"/>
</imageobject></inlinemediaobject></para>
</sect2>
</sect1>
</chapter>
<chapter id="credits">
<title>Credits and License</title>
<para>
&kchart;
</para>
<para>
Program copyright 1998-2005 the &kchart; Team
</para>
<para>
Original Authors:
</para>
<itemizedlist>
<listitem><para>&Matthias.Kalle.Dalheimer; &Matthias.Kalle.Dalheimer.mail;
</para></listitem>
<listitem><para>Torben Weis <email>[email protected]</email></para>
</listitem>
</itemizedlist>
<para>
Contributors:
</para>
<itemizedlist>
<listitem><para>Laurent Montel <email>[email protected]</email></para>
</listitem>
<listitem><para>Karl-Heinz Zimmer <email>[email protected]</email></para>
</listitem>
<listitem><para>Inge Wallin <email>[email protected]</email></para>
</listitem>
</itemizedlist>
<para>
Documentation copyright 2002 &Jonathan.Drews; &Jonathan.Drews.mail;
</para>
<para>
Documentation copyright 2005 Raphael Langerhorst
<email>[email protected]</email>
</para>
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
&underFDL;
&underGPL;
</chapter>
&documentation.index;
</book>
<!--
Local Variables:
mode: sgml
sgml-minimize-attributes:nil
sgml-general-insert-case:lower
sgml-indent-step:0
sgml-indent-data:nil
End:
-->
|