Quick Links (within this page) |
Zoom Line chart looks as under: |
![]() |
Sample XML / JSON for Zoom Line chart: |
<chart caption="Unique Website Visits in a Year" xAxisName="Date" yAxisName="Unique Visitors"> { <chart compactDataMode='1' dataSeparator='|'> <categories>1st January 2009|2nd January 2009|3rd January 2009| 4th January 2009|5th January 2009|6th January 2009|7th January 2009| 8th January 2009|9th January 2009|10th January 2009|11th January 2009| 12th January 2009|13th January 2009|14th January 2009|15th January 2009| 16th January 2009|17th January 2009|18th January 2009|19th January 2009| 20th January 2009|21st January 2009|22nd January 2009|23rd January 2009| 24th January 2009|25th January 2009|26th January 2009|27th January 2009| 28th January 2009|29th January 2009|30th January 2009|31st January 2009| 1st February 2009|2nd February 2009|3rd February 2009|4th February 2009| 5th February 2009|6th February 2009|7th February 2009|8th February 2009| 9th February 2009|10th February 2009|11th February 2009|12th February 2009| 13th February 2009|14th February 2009|15th February 2009|16th February 2009| 17th February 2009|18th February 2009|19th February 2009|20th February 2009| 21st February 2009|22nd February 2009|23rd February 2009|24th February 2009| 25th February 2009|26th February 2009|27th February 2009|28th February 2009| 1st March 2009|2nd March 2009|3rd March 2009|4th March 2009|5th March 2009| 6th March 2009|7th March 2009|8th March 2009|9th March 2009|10th March 2009| 11th March 2009|12th March 2009|13th March 2009|14th March 2009| 15th March 2009|16th March 2009|17th March 2009|18th March 2009| 19th March 2009|20th March 2009|21st March 2009|22nd March 2009| 23rd March 2009|24th March 2009|25th March 2009|26th March 2009| 27th March 2009|28th March 2009|29th March 2009|30th March 2009| 31st March 2009|1st April 2009|2nd April 2009|3rd April 2009|4th April 2009| 5th April 2009|6th April 2009|7th April 2009|8th April 2009|9th April 2009| 10th April 2009|11th April 2009|12th April 2009|13th April 2009| 14th April 2009|15th April 2009|16th April 2009|17th April 2009| 18th April 2009|19th April 2009|20th April 2009|21st April 2009| 22nd April 2009|23rd April 2009|24th April 2009|25th April 2009| 26th April 2009|27th April 2009|28th April 2009|29th April 2009| 30th April 2009|1st May 2009|2nd May 2009|3rd May 2009|4th May 2009| 5th May 2009|6th May 2009|7th May 2009|8th May 2009|9th May 2009| 10th May 2009|11th May 2009|12th May 2009|13th May 2009|14th May 2009| 15th May 2009|16th May 2009|17th May 2009|18th May 2009|19th May 2009| 20th May 2009|21st May 2009|22nd May 2009|23rd May 2009|24th May 2009| 25th May 2009|26th May 2009|27th May 2009|28th May 2009|29th May 2009| 30th May 2009|31st May 2009|1st June 2009|2nd June 2009|3rd June 2009| 4th June 2009|5th June 2009|6th June 2009|7th June 2009|8th June 2009| 9th June 2009|10th June 2009|11th June 2009|12th June 2009|13th June 2009| 14th June 2009|15th June 2009|16th June 2009|17th June 2009|18th June 2009| 19th June 2009|20th June 2009|21st June 2009|22nd June 2009|23rd June 2009| 24th June 2009|25th June 2009|26th June 2009|27th June 2009|28th June 2009| 29th June 2009|30th June 2009|1st July 2009|2nd July 2009|3rd July 2009| 4th July 2009|5th July 2009|6th July 2009|7th July 2009|8th July 2009| 9th July 2009|10th July 2009|11th July 2009|12th July 2009|13th July 2009| 14th July 2009|15th July 2009|16th July 2009|17th July 2009|18th July 2009| 19th July 2009|20th July 2009|21st July 2009|22nd July 2009|23rd July 2009| 24th July 2009|25th July 2009|26th July 2009|27th July 2009|28th July 2009| 29th July 2009|30th July 2009|31st July 2009|1st August 2009| 2nd August 2009|3rd August 2009|4th August 2009|5th August 2009| 6th August 2009|7th August 2009|8th August 2009|9th August 2009| 10th August 2009|11th August 2009|12th August 2009|13th August 2009| 14th August 2009|15th August 2009|16th August 2009|17th August 2009| 18th August 2009|19th August 2009|20th August 2009|21st August 2009| 22nd August 2009|23rd August 2009|24th August 2009|25th August 2009| 26th August 2009|27th August 2009|28th August 2009|29th August 2009| 30th August 2009|31st August 2009|1st September 2009|2nd September 2009| 3rd September 2009|4th September 2009|5th September 2009| 6th September 2009|7th September 2009|8th September 2009| 9th September 2009|10th September 2009|11th September 2009| 12th September 2009|13th September 2009|14th September 2009| 15th September 2009|16th September 2009|17th September 2009| 18th September 2009|19th September 2009|20th September 2009| 21st September 2009|22nd September 2009|23rd September 2009| 24th September 2009|25th September 2009|26th September 2009| 27th September 2009|28th September 2009|29th September 2009| 30th September 2009|1st October 2009|2nd October 2009|3rd October 2009| 4th October 2009|5th October 2009|6th October 2009|7th October 2009| 8th October 2009|9th October 2009|10th October 2009|11th October 2009| 12th October 2009|13th October 2009|14th October 2009|15th October 2009| 16th October 2009|17th October 2009|18th October 2009|19th October 2009| 20th October 2009|21st October 2009|22nd October 2009|23rd October 2009| 24th October 2009|25th October 2009|26th October 2009|27th October 2009| 28th October 2009|29th October 2009|30th October 2009|31st October 2009| 1st November 2009|2nd November 2009|3rd November 2009|4th November 2009| 5th November 2009|6th November 2009|7th November 2009|8th November 2009| 9th November 2009|10th November 2009|11th November 2009|12th November 2009| 13th November 2009|14th November 2009|15th November 2009|16th November 2009| 17th November 2009|18th November 2009|19th November 2009|20th November 2009| 21st November 2009|22nd November 2009|23rd November 2009|24th November 2009| 25th November 2009|26th November 2009|27th November 2009|28th November 2009| 29th November 2009|30th November 2009|1st December 2009|2nd December 2009| 3rd December 2009|4th December 2009|5th December 2009|6th December 2009| 7th December 2009|8th December 2009|9th December 2009|10th December 2009| 11th December 2009|12th December 2009|13th December 2009|14th December 2009| 15th December 2009|16th December 2009|17th December 2009|18th December 2009| 19th December 2009|20th December 2009|21st December 2009|22nd December 2009| 23rd December 2009|24th December 2009|25th December 2009|26th December 2009| 27th December 2009|28th December 2009|29th December 2009|30th December 2009| 31st December 2009 </categories> <dataset seriesName="Website A"> 300|349|627|445|623|575|567|576|745|409|647|690|502|471|694|707|725|951| 853|846|995|967|1084|1028|736|1105|541|780|940|1047|847|853|1106|963| 949|1079|797|941|964|1008|1267|1162|835|980|683|933|1163|1277|984|678| 1018|694|1038|598|922|835|686|789|873|724|1260|1746|1070|711|854|725|812| 944|952|989|1047|841|930|1051|1288|1213|1027|1297|1022|886|866|1550|1345| 871|784|1221|1142|1147|1520|1254|1665|1027|1266|1088|1470|1760|1298|1184| 879|957|719|730|1309|819|897|934|960|717|656|1072|1021|1121|600|671|730| 796|811|933|752|548|507|456|905|887|824|818|769|648|1477|661|847|1551|780| 636|672|455|880|884|1120|1664|513|1174|935|760|942|1347|1004|814|617|852| 632|808|990|746|1099|679|750|544|1194|935|846|1043|741|669|689|872|1051| 677|611|709|441|598|586|941|919|822|1007|992|766|855|1016|903|761|574|309| 634|1098|633|993|957|1145|731|680|906|1232|1142|779|636|601|768|582|1042| 1096|1405|568|712|673|754|1082|1157|1203|845|659|475|896|1128|1332|915| 535|441|1020|1050|795|634|711|529|666|702|686|823|834|797|1008|645|757| 761|878|752|876|769|1264|1037|1202|965|1165|1167|896|1285|851|808|893| 831|695|801|848|1319|1126|1171|889|1108|1435|1130|975|978|1501|1036| 1161|1318|727|975|1821|1569|1247|1015|1034|953|1325|1543|1515|1565| 1517|962|1353|1541|1204|1476|1215|1262|885|1606|995|1872|1402|1499|1031| 870|1001|1541|1392|1716|1826|993|1152|732|792|1262|1860|1407|1216|989| 830|892|1620|1326|1164|1679|958|1254|971|1428|1696|952|1329|1276|732| 1335|1353|837|906|734|656|636|585|1103|910|995|1046|932|1123|1158|895| 1412|1406|971|926|649|1140|929|1350|701|611|544|527|483|522|542|115|340| 033|234|123|455|125|230|276 </dataset> <dataset seriesName="Website B"> 200|340|627|445|623|575|520|576|745|409|647|690|502|471|650|707|725|951| 853|846|995|967|1084|800|650|1105|541|780|940|1047|847|853|1500|963|949| 950|797|941|964|900|1267|1162|835|980|450|933|1163|1277|984|500|1018|694| 1038|598|910|835|686|705|873|690|1260|1746|825|711|854|725|812|944|710| 989|1047|512|930|1051|1288|1000|1027|1297|800|886|866|1550|800|871|784| 1221|1000|1147|1520|1254|1525|1027|1266|1088|1470|1350|1298|1184|350|957| 719|730|1309|819|897|934|960|717|656|1072|1021|1121|600|671|730|796|811| 933|752|548|507|456|905|887|824|818|769|648|1477|661|847|1551|780|636| 672|455|880|884|1120|1664|513|1174|935|760|942|1347|1004|814|617|852| 632|808|990|746|976|679|750|544|1194|935|846|1043|741|669|689|872|800| 677|611|709|441|598|586|941|523|822|1007|992|766|855|1210|903|761|574| 309|634|850|633|993|957|950|731|680|906|750|1142|779|636|601|768|582| 1042|1096|1405|568|712|400|754|1082|1157|1033|845|659|475|896|1128|812| 915|535|441|576|1050|795|634|711|529|666|552|686|823|834|797|1212|645| 757|761|878|752|556|769|1264|1037|1202|750|1165|1167|896|1285|551|808| 893|831|695|801|520|1319|1126|1171|889|905|1435|1130|975|978|1501|1036| 825|1318|727|975|750|1569|1247|1015|1034|500|1325|1543|1515|1565|1517| 962|1353|1541|1641|1476|1215|1262|250|1606|995|1250|1402|1499|1031|780| 1001|1541|1392|1716|1200|993|1152|732|792|1262|1560|1407|1216|989|830| 892|1620|1326|1164|1219|958|1254|971|1428|1696|952|1329|1276|732|1152| 1353|837|906|734|656|636|585|1541|910|995|1046|932|1123|1158|895|1332| 1406|971|926|649|1140|929|1350|701|611|544|527|450|522|542|115|340|033| 234|123|455|176|200|250 </dataset> </chart> { "chart":{ "compactdatamode":"1", "dataseparator":"|" }, "categories":[{ "category":["1st January 2009|2nd January 2009|3rd January 2009| 4th January 2009|5th January 2009|6th January 2009|7th January 2009| 8th January 2009|9th January 2009|10th January 2009|11th January 2009| 12th January 2009|13th January 2009|14th January 2009|15th January 2009| 16th January 2009|17th January 2009|18th January 2009|19th January 2009| 20th January 2009|21st January 2009|22nd January 2009|23rd January 2009| 24th January 2009|25th January 2009|26th January 2009|27th January 2009| 28th January 2009|29th January 2009|30th January 2009|31st January 2009| 1st February 2009|2nd February 2009|3rd February 2009|4th February 2009| 5th February 2009|6th February 2009|7th February 2009|8th February 2009| 9th February 2009|10th February 2009|11th February 2009|12th February 2009| 13th February 2009|14th February 2009|15th February 2009|16th February 2009| 17th February 2009|18th February 2009|19th February 2009|20th February 2009| 21st February 2009|22nd February 2009|23rd February 2009|24th February 2009| 25th February 2009|26th February 2009|27th February 2009|28th February 2009| 1st March 2009|2nd March 2009|3rd March 2009|4th March 2009|5th March 2009| 6th March 2009|7th March 2009|8th March 2009|9th March 2009|10th March 2009| 11th March 2009|12th March 2009|13th March 2009|14th March 2009| 15th March 2009|16th March 2009|17th March 2009|18th March 2009| 19th March 2009|20th March 2009|21st March 2009|22nd March 2009| 23rd March 2009|24th March 2009|25th March 2009|26th March 2009| 27th March 2009|28th March 2009|29th March 2009|30th March 2009| 31st March 2009|1st April 2009|2nd April 2009|3rd April 2009|4th April 2009| 5th April 2009|6th April 2009|7th April 2009|8th April 2009|9th April 2009| 10th April 2009|11th April 2009|12th April 2009|13th April 2009| 14th April 2009|15th April 2009|16th April 2009|17th April 2009| 18th April 2009|19th April 2009|20th April 2009|21st April 2009| 22nd April 2009|23rd April 2009|24th April 2009|25th April 2009| 26th April 2009|27th April 2009|28th April 2009|29th April 2009| 30th April 2009|1st May 2009|2nd May 2009|3rd May 2009|4th May 2009| 5th May 2009|6th May 2009|7th May 2009|8th May 2009|9th May 2009| 10th May 2009|11th May 2009|12th May 2009|13th May 2009|14th May 2009| 15th May 2009|16th May 2009|17th May 2009|18th May 2009|19th May 2009| 20th May 2009|21st May 2009|22nd May 2009|23rd May 2009|24th May 2009| 25th May 2009|26th May 2009|27th May 2009|28th May 2009|29th May 2009| 30th May 2009|31st May 2009|1st June 2009|2nd June 2009|3rd June 2009| 4th June 2009|5th June 2009|6th June 2009|7th June 2009|8th June 2009| 9th June 2009|10th June 2009|11th June 2009|12th June 2009|13th June 2009| 14th June 2009|15th June 2009|16th June 2009|17th June 2009|18th June 2009| 19th June 2009|20th June 2009|21st June 2009|22nd June 2009|23rd June 2009| 24th June 2009|25th June 2009|26th June 2009|27th June 2009|28th June 2009| 29th June 2009|30th June 2009|1st July 2009|2nd July 2009|3rd July 2009| 4th July 2009|5th July 2009|6th July 2009|7th July 2009|8th July 2009| 9th July 2009|10th July 2009|11th July 2009|12th July 2009|13th July 2009| 14th July 2009|15th July 2009|16th July 2009|17th July 2009|18th July 2009| 19th July 2009|20th July 2009|21st July 2009|22nd July 2009|23rd July 2009| 24th July 2009|25th July 2009|26th July 2009|27th July 2009|28th July 2009| 29th July 2009|30th July 2009|31st July 2009|1st August 2009| 2nd August 2009|3rd August 2009|4th August 2009|5th August 2009| 6th August 2009|7th August 2009|8th August 2009|9th August 2009| 10th August 2009|11th August 2009|12th August 2009|13th August 2009| 14th August 2009|15th August 2009|16th August 2009|17th August 2009| 18th August 2009|19th August 2009|20th August 2009|21st August 2009| 22nd August 2009|23rd August 2009|24th August 2009|25th August 2009| 26th August 2009|27th August 2009|28th August 2009|29th August 2009| 30th August 2009|31st August 2009|1st September 2009|2nd September 2009| 3rd September 2009|4th September 2009|5th September 2009| 6th September 2009|7th September 2009|8th September 2009| 9th September 2009|10th September 2009|11th September 2009| 12th September 2009|13th September 2009|14th September 2009| 15th September 2009|16th September 2009|17th September 2009| 18th September 2009|19th September 2009|20th September 2009| 21st September 2009|22nd September 2009|23rd September 2009| 24th September 2009|25th September 2009|26th September 2009| 27th September 2009|28th September 2009|29th September 2009| 30th September 2009|1st October 2009|2nd October 2009|3rd October 2009| 4th October 2009|5th October 2009|6th October 2009|7th October 2009| 8th October 2009|9th October 2009|10th October 2009|11th October 2009| 12th October 2009|13th October 2009|14th October 2009|15th October 2009| 16th October 2009|17th October 2009|18th October 2009|19th October 2009| 20th October 2009|21st October 2009|22nd October 2009|23rd October 2009| 24th October 2009|25th October 2009|26th October 2009|27th October 2009| 28th October 2009|29th October 2009|30th October 2009|31st October 2009| 1st November 2009|2nd November 2009|3rd November 2009|4th November 2009| 5th November 2009|6th November 2009|7th November 2009|8th November 2009| 9th November 2009|10th November 2009|11th November 2009|12th November 2009| 13th November 2009|14th November 2009|15th November 2009|16th November 2009| 17th November 2009|18th November 2009|19th November 2009|20th November 2009| 21st November 2009|22nd November 2009|23rd November 2009|24th November 2009| 25th November 2009|26th November 2009|27th November 2009|28th November 2009| 29th November 2009|30th November 2009|1st December 2009|2nd December 2009| 3rd December 2009|4th December 2009|5th December 2009|6th December 2009| 7th December 2009|8th December 2009|9th December 2009|10th December 2009| 11th December 2009|12th December 2009|13th December 2009|14th December 2009| 15th December 2009|16th December 2009|17th December 2009|18th December 2009| 19th December 2009|20th December 2009|21st December 2009|22nd December 2009| 23rd December 2009|24th December 2009|25th December 2009|26th December 2009| 27th December 2009|28th December 2009|29th December 2009|30th December 2009| 31st December 2009 " ] } ], "dataset":[{ "seriesname":"Website A", "data":["300|349|627|445|623|575|567|576|745|409|647|690|502|471|694|707| 725|951|853|846|995|967|1084|1028|736|1105|541|780|940|1047|847|853| 1106|963|949|1079|797|941|964|1008|1267|1162|835|980|683|933|1163| 1277|984|678|1018|694|1038|598|922|835|686|789|873|724|1260|1746| 1070|711|854|725|812|944|952|989|1047|841|930|1051|1288|1213|1027| 1297|1022|886|866|1550|1345|871|784|1221|1142|1147|1520|1254|1665| 1027|1266|1088|1470|1760|1298|1184|879|957|719|730|1309|819|897|934| 960|717|656|1072|1021|1121|600|671|730|796|811|933|752|548|507|456| 905|887|824|818|769|648|1477|661|847|1551|780|636|672|455|880|884| 1120|1664|513|1174|935|760|942|1347|1004|814|617|852|632|808|990| 746|1099|679|750|544|1194|935|846|1043|741|669|689|872|1051|677|611| 709|441|598|586|941|919|822|1007|992|766|855|1016|903|761|574|309| 634|1098|633|993|957|1145|731|680|906|1232|1142|779|636|601|768| 582|1042|1096|1405|568|712|673|754|1082|1157|1203|845|659|475|896| 1128|1332|915|535|441|1020|1050|795|634|711|529|666|702|686|823|834| 797|1008|645|757|761|878|752|876|769|1264|1037|1202|965|1165|1167|896| 1285|851|808|893|831|695|801|848|1319|1126|1171|889|1108|1435|1130|975| 978|1501|1036|1161|1318|727|975|1821|1569|1247|1015|1034|953|1325|1543| 1515|1565|1517|962|1353|1541|1204|1476|1215|1262|885|1606|995|1872|1402| 1499|1031|870|1001|1541|1392|1716|1826|993|1152|732|792|1262|1860|1407| 1216|989|830|892|1620|1326|1164|1679|958|1254|971|1428|1696|952|1329| 1276|732|1335|1353|837|906|734|656|636|585|1103|910|995|1046|932|1123| 1158|895|1412|1406|971|926|649|1140|929|1350|701|611|544|527|483|522| 542|115|340|033|234|123|455|125|230|276 " ] }, { "seriesname":"Website B", "data":["200|340|627|445|623|575|520|576|745|409|647|690|502|471|650| 707|725|951|853|846|995|967|1084|800|650|1105|541|780|940|1047|847| 853|1500|963|949|950|797|941|964|900|1267|1162|835|980|450|933|1163| 1277|984|500|1018|694|1038|598|910|835|686|705|873|690|1260|1746|825| 711|854|725|812|944|710|989|1047|512|930|1051|1288|1000|1027|1297|800| 886|866|1550|800|871|784|1221|1000|1147|1520|1254|1525|1027|1266|1088| 1470|1350|1298|1184|350|957|719|730|1309|819|897|934|960|717|656|1072| 1021|1121|600|671|730|796|811|933|752|548|507|456|905|887|824|818|769| 648|1477|661|847|1551|780|636|672|455|880|884|1120|1664|513|1174|935| 760|942|1347|1004|814|617|852|632|808|990|746|976|679|750|544|1194|935| 846|1043|741|669|689|872|800|677|611|709|441|598|586|941|523|822|1007| 992|766|855|1210|903|761|574|309|634|850|633|993|957|950|731|680|906| 750|1142|779|636|601|768|582|1042|1096|1405|568|712|400|754|1082|1157| 1033|845|659|475|896|1128|812|915|535|441|576|1050|795|634|711|529|666| 552|686|823|834|797|1212|645|757|761|878|752|556|769|1264|1037|1202|750| 1165|1167|896|1285|551|808|893|831|695|801|520|1319|1126|1171|889|905| 1435|1130|975|978|1501|1036|825|1318|727|975|750|1569|1247|1015|1034| 500|1325|1543|1515|1565|1517|962|1353|1541|1641|1476|1215|1262|250| 1606|995|1250|1402|1499|1031|780|1001|1541|1392|1716|1200|993|1152| 732|792|1262|1560|1407|1216|989|830|892|1620|1326|1164|1219|958|1254| 971|1428|1696|952|1329|1276|732|1152|1353|837|906|734|656|636|585|1541| 910|995|1046|932|1123|1158|895|1332|1406|971|926|649|1140|929|1350|701| 611|544|527|450|522|542|115|340|033|234|123|455|176|200|250 " ] } ] } |
Back to top ![]() |
Chart Objects |
Object Name | Description | Features Supported | |
ANCHORS | On line/area charts, ANCHORS (or marker points) are polygons which appear at the joint of two consecutive lines/area points. These are indicators to show the position of data points. The anchors handle tool tips and links for the data points. |
|
|
BACKGROUND | BACKGROUND refers to the entire background of the chart. |
|
|
CANVAS | In 2D Charts, CANVAS refers to the area in which the actual chart is plotted. It is represented by a bounded rectangle. In 3D charts, it refers to the 3D base on which the columns are built. |
|
|
CAPTION | CAPTION refers to the heading of the chart. |
|
|
DATALABELS | DATALABELS refer to the x-axis labels of the data. |
|
|
DATAPLOT | DATAPLOT refers to the actual plot of the chart. For example, in Column 2D chart, columns are referred to as DATAPLOT. In Pie chart, it's the pies. In Bubble chart, it's the bubbles and so on. |
|
|
DATAVALUES | DATAVALUES refer to the plot values i.e., value of each data (line, column, bar, pie etc.), which is displayed beside the data plot. |
|
|
DIVLINES | DIVLINES are horizontal or vertical lines running through the canvas. Each divisional line signifies a smaller unit of the entire axis thus aiding the users in interpreting the chart. |
|
|
DATATOOLTIP | DATATOOLTIP refers to the tooltip that appears within the canvas. It is displayed when the when mouse hovers over a dataplot. The value of the dataplot is shown in the tooltip. |
|
|
DISABLEDBUTTON | DISABLEDBUTTONS are the inactive buttons that are displayed at the top-right corner of the chart. |
|
|
ENABLEDBUTTON | ENABLEDBUTTONS are the active buttons that are displayed at the top-right corner of the chart. |
|
|
LEGEND | LEGEND is the object in which the series names of all data-sets show up. |
|
|
OVERLAYLABEL | OVERLAYLABEL appears below the XAXIS when the mouse cursor hovers over dataplots. The label displays the datalabel of the dataplot which is currently being hovered over. When the mouse cursor is dragged over the dataplots for zooming, two overlay labels appear below the X axis indicating the start point and end point of selection. |
|
|
SCROLLBAR | SCROLLBAR refers to the scroll bar of the chart. |
|
|
SUBCAPTION | SUBCAPTION refers to the sub-heading of the chart. |
|
|
TOOLTIP | TOOLTIP refers to the tool tip shown when mouse is hovered over the data plots. |
|
|
TRENDLINES | TRENDLINES refer to horizontal/vertical lines spanning the chart canvas which aid in interpretation of data with respect to some pre-determined value. |
|
|
TRENDVALUES | TRENDVALUES refer to the display values of trend-lines (if any). |
|
|
VTRENDLINES | VTRENDLINES refer to vertical lines spanning the chart canvas which aid in interpretation of data with respect to some pre-determined value. |
|
|
VTRENDLINEVALUES | VTRENDVALUES refer to the display values of vertical trend-lines. |
|
|
XAXISNAME | XAXISNAME refers to the x-axis title of the chart. |
|
|
YAXISNAME | YAXISNAME refers to the y-axis title of the chart. |
|
|
YAXISVALUES | YAXISVALUES refers to the limit values or divisional line values, which are displayed along the y-axis of the chart. |
|
|
Back to top ![]() |
<chart> element Attributes |
Functional Attributes |
These attributes let you control a variety of functional elements on the chart. For example, you can opt to show/hide data labels, data values, y-axis values. You can also set chart limits and extended properties. |
Attribute Name | Type | Range | Description |
numVisiblePlot | Number | 2-number of data items present in XML | This attribute lets you control how many data plots would appear in the visible area of the scroll pane. For example, if you're plotting a chart with 25 data items in each data-set, and you wish to show only 10 data items in the visible area, set this attribute as 10. You would now see only 10 data points on the chart - rest of the data points would be visible upon scrolling. If you want to show all the data points on the chart irrespective of the number of data points in your XML data document, set this attribute as 0. |
palette | Number | 1-5 | FusionCharts v3 introduces the concept of Color Palettes. Each chart has 5 pre-defined color palettes which you can choose from. Each palette renders the chart in a different color theme. Valid values are 1-5. |
paletteColors | String | List of hex color codes separated by comma | While the palette attribute allows to select a palette theme that applies to chart background, canvas, font and tool-tips, it does not change the colors of data items (i.e., column, line, pie etc.). Using paletteColors attribute, you can specify your custom list of hex colors for the data items. The list of colors have to be separated by comma e.g., <chart paletteColors='FF0000,0372AB,FF5904...'>. The chart will cycle through the list of specified colors and then render the data plot accordingly. To use the same set of colors throughout all your charts in a web application, you can store the list of palette colors in your application globally and then provide the same in each chart XML. |
showAboutMenuItem | Boolean | 0/1 | Setting this to 1 shows up a custom context menu in the chart, which can be customized to show your text and can be linked to your Url. For e.g., you can set the context menu of the chart to include "About your company name" and then link to your company home page. By default, the chart shows "About FusionCharts" when right clicked. |
aboutMenuItemLabel | String | The menu item label for the custom context menu item. | |
aboutMenuItemLink | String | URL | Link for the custom context menu item. You can specify the link in FusionCharts Link format to be able to open the same in new window, pop-ups, frames or as JavaScript links. |
connectNullData | Boolean | 0/1 | This attributes lets you control Whether empty data sets in your data will be connected to each other OR would they appear as broken data sets. Please see Discontinuous data section for more details on this. |
showLabels | Boolean | 0/1 | It sets the configuration whether the x-axis labels will be displayed or not. |
labelDisplay | String | AUTO Since v 3.2 WRAP STAGGER ROTATE or NONE |
Using this attribute, you can customize the alignment of data labels (x-axis labels). There are 5 options: AUTO, WRAP, STAGGER, ROTATE or NONE. By default, this attribute is set to AUTO mode which means that the alignment of the data labels is determined automatically depending on the size of the chart. WRAP wraps the label text if it is too long to fit in one line. ROTATE rotates the labels vertically. STAGGER divides the labels into multiple lines. |
useEllipsesWhenOverflow Since v 3.2.1 |
Boolean | 0/1 | When enabled in auto mode, long data labels are truncated by adding ellipses to prevent them from overflowing the chart background. The default value is 1. |
rotateLabels | Boolean | 0/1 | This attribute lets you set whether the data labels would show up as rotated labels on the chart. |
showValues | Boolean | 0/1 | Sets the configuration whether data values would be displayed along with the data plot on chart. |
valuePosition
Since v 3.2 |
String | ABOVE BELOW AUTO |
If you've opted to show data values on the chart, this attribute lets you adjust the vertical alignment of data values with respect to dataplots. By default, this attribute is set to AUTO mode in which the alignment of each data value is determined automatically based on the position of each plot point. In ABOVE mode, data values are displayed above the plot points unless a plot point is too close to the upper edge of the canvas while in BELOW mode, data values are displayed below the plot points unless a plot point is too close to the lower edge of the canvas. |
rotateValues | Boolean | 0/1 | If you've opted to show data values, you can rotate them using this attribute. |
defaultAnimation | Boolean | 0/1 | By default, each chart animates some of its elements. If you wish to switch off the default animation patterns, you can set this attribute to 0. It can be particularly useful when you want to define your own animation patterns using STYLE feature. |
yAxisMaxValue | Number | This attribute helps you explicitly set the upper limit of the chart. If you don't specify this value, it is automatically calculated by FusionCharts based on the data provided by you. | |
yAxisMinValue | Number | This attribute helps you explicitly set the lower limit of the chart. If you don't specify this value, it is automatically calculated by FusionCharts based on the data provided by you. | |
yAxisNameWidth | Number | (In Pixels) | If you opt to not rotate y-axis name, you can choose a maximum width that will be applied to y-axis name. |
showShadow | Boolean | 0/1 | Whether to show shadows for data plot. |
rotateYAxisName | Boolean | 0/1 | If you do not wish to rotate y-axis name, set this as 0. It specifically comes to use when you've special characters (UTF8) in your y-axis name that do not show up in rotated mode. |
setAdaptiveYMin | Boolean | 0/1 | This attribute lets you set whether the y-axis lower limit would be 0 (in case of all positive values on chart) or should the y-axis lower limit adapt itself to a different figure based on values provided to the chart. |
compactDataMode | Boolean | 0/1 | Indicates whether the XML is in compact form or not. |
dataSeparator | Character | Any character | Specifies the separation character used in compact XML. |
axis | String | linear/log | Converts linear axis into logarithmic axis and vice versa. The chart axis is linear by default. |
logBase | Number | Any number < 1 | Specifies the base for the logarithmic scale. |
numMinorLogDivLines | Number | Any number | Specifies the number of minor divisional lines to display between two major log divisions. If not specified the chart will automatically display certain number of minor divisional lines. |
dynamicAxis | Boolean | 0/1 | If enabled the Y-axis scale will automatically adapt to the data when the chart is zoomed. This feature is not applicable in case of logarithmic scale. |
divIntervalHints | Number | Sequence of numbers (comma separated e.g. 15,25,50) | Specifies a list of intervals for the divisional lines, out of which the chart automatically selects the most appropriate interval. This feature is not applicable in case of logarithmic scale. |
allowPinMode | Boolean | 0/1 | Used for enabling/disabling the pin mode feature, which is active by default. |
numVisibleLabels | Number | Any number | Specifies the number of data labels that are to be visible in one screen. |
anchorMinRenderDistance | Number | Any number | Sets the minimum distance in pixels at which to show anchors. This helps in making the chart clutter free. |
showVDivLines | Boolean | 0/1 | Enables/disables the rendering of vertical divisional line for every data label. |
displayStartIndex | Number | Any number .< 1 | Indicates the index of the data label that will appear to the extreme left of the chart. |
displayEndIndex | Number | Any Number < 1 | Indicates the index of the data label that is to appear at the extreme right of the chart. Using displayStartIndex and displayEndIndex attributes you can set the range of data labels that'll be visible when the chart first renders. |
drawToolbarButtons | Boolean | 0/1 | Shows/hides the toolbar buttons, these are shown by default. |
pixelsPerPoint | Number | Any number | Specifies the quantity of pixels to be used for producing a data point. A greater number will result in high quality display. |
Back to top ![]() |
Chart Titles and Axis Names |
Using these attributes, you can set the various headings and titles of chart like caption, sub-caption, x-axis and y-axis names etc. |
Attribute Name | Type | Description |
caption | String | Caption of the chart. |
subCaption | String | Sub-caption of the chart. |
xAxisName | String | X-Axis Title of the Chart. |
yAxisName | String | Y-Axis Title of the chart. |
Back to top ![]() |
Chart Cosmetics |
The following attributes let you configure chart cosmetics like background color, background alpha, canvas color & alpha etc. |
Attribute Name | Type | Range | Description |
showBorder | Boolean | 0/1 | Whether to show a border around the chart or not. |
borderColor | Color | Border color of the chart. | |
borderThickness | Number | In Pixels | Border thickness of the chart. |
borderAlpha | Number | 0-100 | Border alpha of the chart. |
bgColor | Color | This attribute sets the background color for the chart. You can set any hex color code as the value of this attribute. To specify a gradient as background color, separate the hex color codes of each color in the gradient using comma. Example: FF5904,FFFFFF. Remember to remove # and any spaces in between. See the gradient specification page for more details. | |
bgAlpha | Number | 0-100 | Sets the alpha (transparency) for the background. If you've opted for gradient background, you need to set a list of alpha(s) separated by comma. See the gradient specification page for more details. |
bgRatio | Number | 0-100 | If you've opted for a gradient background, this attribute lets you set the ratio of each color constituent. See the gradient specification page for more details. |
bgAngle | Number | 0-360 | Angle of the background color, in case of a gradient. See the gradient specification page for more details. |
bgSWF | String | To place any Flash movie as background of the chart, enter the (path and) name of the background SWF. It should be in the same domain as the chart. | |
bgSWFAlpha | Number | 0-100 | Helps you specify alpha for the loaded background SWF. |
canvasBgColor | Color | Sets Canvas background color. For Gradient effect, enter colors separated by comma. | |
canvasBgAlpha | Number | Sets alpha for Canvas Background. For gradient, enter alpha list separated by commas. | |
canvasBgRatio | Number | 0-100 | Helps you specify canvas background ratio for gradients. |
canvasBgAngle | Number | Helps you specify canvas background angle in case of gradient. | |
canvasBorderColor | Color | Lets you specify canvas border color. | |
canvasBorderThickness | Number | 0-5 | Lets you specify canvas border thickness. |
canvasBorderAlpha | Number | 0-100 | Lets you control transparency of canvas border. |
showVLineLabelBorder | Boolean | 0/1 | If you've opted to show a label for any of your vLines in the chart, you can collectively configure whether to show border for all such labels using this attribute. If you want to show label border for just a particular vLine, you can over-ride this value by specifying border configuration for that specific vLine. |
logoURL | String | Url | You can load an external logo (JPEG/PNG/SWF) on the chart once it has rendered. This attribute lets you specify the Url of the same. Owing to Flash Player security settings, you can only specify logo that are on the sub-domain as the SWF file of the chart. |
logoPosition | String | TL, TR, BL, BR, CC | Where to position the logo on the chart:
|
logoAlpha | Number | 0-100 | Once the logo has loaded on the chart, you can configure its opacity using this attribute. |
logoScale | Number | 0-300 | You can also change the scale of externally loaded logo at run-time by specifying a value for this parameter. |
logoLink | String | Url | If you want to link the logo to an external URL, specify the link in this attribute. The link can be in FusionCharts Link format, allowing you to link to new windows, pop-ups, frames etc. |
paletteThemeColor | Color code | Any (color code without the # prefix) | Specifies a color theme that will be applied throughout the chart. |
toolbarButtonColor | Color code | Any (color code without the # prefix) | Sets the color of the toolbar buttons. |
toolbarButtonFontColor | Color code | Any (color code without the # prefix) | Sets the color of the toolbar font. |
zoomPaneBorderColor | Color code | Any (color code without the # prefix) | Sets the color of the zoom pane border. |
zoomPaneBgColor | Color code | Any (color code without the # prefix) | Sets the background color of the zoom pane. |
zoomPaneBgAlpha | Number | 0-100 | Sets the alpha of the zoom pane. |
pinLineThicknessDelta | Number | Any number | Sets the thickness of the pinned line when the chart is put to pin line mode. |
pinPaneBorderColor | Color code | Any (color code without the # prefix) | Sets the color of the pin pane border. |
pinPaneBgColor | Color code | Any (color code without the # prefix) | Sets the background color of the pin pane. |
pinPaneBgAlpha | Number | 0-100 | Sets the alpha of the pin pane. |
toolTipBarColor | Color code | Any (color code without the # prefix) | Sets the color of the tooltip bar, which is displayed alongside the tooltips. |
mouseCursorColor | Color code | Any (color code without the # prefix) | Sets the color of the mouse cursor. |
btnResetChartTitle | String | Any string | Replaces the title of the 'Reset Chart' button with provided string. |
btnZoomOutTitle | String | Any string | Replaces the title of the 'Zoom Out' button with the provided string. |
btnSwitchtoZoomModeTitle | String | Any string | Replaces the title of the 'Switch to Zoom Mode' button with provided string. |
btnSwitchToPinModeTitle | String | Any string | Replaces the title of the "Switch to Pin Mode' button with provided string. |
showToolBarButtonTooltext | Boolean | 0/1 | Enables/disables display of tooltips for toolbar buttons. |
btnResetChartTooltext | String | Any string | Replaces the default tooltext of the 'Reset Chart' button with provided string. |
btnSwitchToPinModeTooltext | String | Any string. | Replaces the default tooltext of 'Switch to Pin Mode' button with provided string. |
zoomOutMenuItemLabel | String | Any string except 'Zoom Out' | Replaces the 'Zoom Out Chart' menu label with provided string. |
resetChartMenuItemLabel | String | Any string | Replaces the 'Reset Chart' menu item with provided string. |
zoomModeMenuItemLabel | String | Any string | Replaces the 'Zoom Mode' menu item with provided string. |
pinModeMenuItemLabel | String | Any string | Replaces the 'Pin Mode' menu item with provided string. |
toolBarBtnTextVMargin | Number | in pixels | Sets the Vertical margin of toolbar buttons (i.e., padding between text and button border). |
toolBarBtnTextHMargin | Number | in pixels | Sets the Horizontal margin of toolbar buttons (i.e., padding between text and button border). |
toolBarBtnHPadding | Number | in pixels | Sets horizontal spacing between toolbar buttons. |
toolBarBtnVPadding | Number | in pixels | Sets the vertical spacing between toolbar buttons. |
Back to top ![]() |
Data Plot Cosmetics |
These attributes let you configure how your plot (columns, lines, area, pie or any data that you're plotting) would appear on the chart. If the plots can show borders, you can control the border properties using the attributes listed below. Or, if they support gradient fills, you can again configure various properties of the gradient using these attributes. Various other controls over plot cosmetics can be attained using this set of attributes. |
Attribute Name | Type | Range | Description |
lineColor | Color | Hex Code | Color using which the lines on the chart will be drawn. |
lineThickness | Number | In Pixels | Thickness of the lines on the chart. |
lineAlpha | Number | 0-100 | Alpha of the lines on the chart. |
Back to top ![]() |
Scroll Properties |
The following attributes let you set the scroll bar properties. |
Attribute Name | Type | Range | Description |
scrollColor | Color | Hex Code | Color for scroll bar. |
scrollHeight | Number | In Pixels | Required height for scroll bar. |
scrollPadding | Number | In Pixels | Distance between the end of canvas (bottom part) and start of scroll bar. |
scrollBtnWidth | Number | In Pixels | Width of both scroll bar buttons (left & right). |
scrollBtnPadding | Number | In Pixels | Padding between the scroll buttons and the scroll track (background). |
Back to top ![]() |
Anchors |
On line/area charts, anchors (or marker points) are polygons which appear at the joint of two consecutive lines/area points. These are indicators to show the position of data points. The anchors handle tool tips and links for the data points. So, if you opt to not render anchors on a chart, the tool tips and links won't function. You can, however, hide them by setting alpha to 0 and still enable tool tips and links. You can customize all the facets of anchors using the properties below. |
Attribute Name | Type | Range | Description |
drawAnchors | Boolean | 0/1 | Whether to draw anchors on the chart. If the anchors are not shown, then the tool tip and links won't work. |
anchorRadius | Number | In Pixels | This attribute sets the radius (in pixels) of the anchor. Greater the radius, bigger would be the anchor size. |
anchorBorderColor | Color | Hex Code | Lets you set the border color of anchors. |
anchorBorderThickness | Number | In Pixels | Helps you set border thickness of anchors. |
anchorBgColor | Color | Hex Code | Helps you set the background color of anchors. |
anchorBgAlpha | Number | 0-100 | Helps you set the alpha of anchor background. |
anchorMinRenderDistance | Number | This attribute is used for specifying the minimum distance (between dataplots) for the anchors to become visible. | |
Back to top ![]() |
Divisional Lines & Grids |
Using this set of attributes, you can control the properties of divisional lines, zero plane and alternate color bands. Divisional Lines are horizontal lines running through the canvas. Each divisional line signifies a smaller unit of the entire axis thus aiding the users in interpreting the chart. The zero plane is a 2D/3D plane that signifies the 0 position on the chart. If there are no negative numbers on the chart, you won't see a visible zero plane. Alternate color bands are colored blocks between two successive divisional lines. |
Attribute Name | Type | Range | Description |
divLineColor | Color | Color for divisional lines | |
divLineThickness | Number | 1-5 | Thickness of divisional lines |
divLineAlpha | Number | 0-100 | Alpha of divisional lines. |
divLineIsDashed | Boolean | 0/1 | Whether the divisional lines should display as dash. |
divLineDashLen | Number | In Pixels | If the divisional lines are to be displayed as dash, this attribute lets you control the length of each dash. |
divLineDashGap | Number | In Pixels | If the divisional lines are to be displayed as dash, this attribute lets you control the length of each gap between dash. |
zeroPlaneColor | Color | Color for the Zero Plane. Zero Plane is the line/plane that appears at 0 y-position on canvas, when negative data is being shown on the chart. | |
zeroPlaneThickness | Number | In Pixels | Thickness of zero plane. |
zeroPlaneAlpha | Number | 0-100 | Alpha of zero plane. |
showAlternateHGridColor | Boolean | 0/1 | Whether to show alternate colored horizontal grid bands. |
alternateHGridColor | Color | Color of the alternate horizontal grid bands. | |
alternateHGridAlpha | Number | Alpha (transparency) of the alternate horizontal grid bands. | |
Back to top ![]() |
Legend Properties |
In multi-series charts, the series name of each data-set shows up in the legend of the chart. If you do not need the legend, you can opt to hide the same. Also, the legend can be placed at the bottom of the chart or to the right of the chart. Using the attributes below, you can configure the functional and cosmetic properties of the legend. |
Attribute Name | Type | Range | Description |
showLegend | Boolean | 0/1 | Whether to show legend on the chart. |
legendPosition | String | BOTTOM or RIGHT | The legend can be plotted at two positions on the chart - below the chart (BOTTOM) and on the RIGHT side of the chart. |
legendCaption | String | You can add a caption for the entire legend by setting the same here. | |
legendIconScale | Number | 0-5 | Scaling of legend icon is possible starting FusionCharts v3.2. This attribute lets you control the size of legend icon. |
legendBgColor | Color | Hex Code | Background color for the legend. |
legendBgAlpha | Number | 0-100 | Background alpha for the legend. |
legendBorderColor | Color | Hex Code | Border Color for the legend. |
legendBorderThickness | Number | In Pixels | Border thickness for the legend. |
legendBorderAlpha | Number | 0-100 | Border alpha for the legend. |
legendShadow | Boolean | 0/1 | Whether to show a shadow for legend. |
legendAllowDrag | Boolean | 0/1 | The legend can be made drag-able by setting this attribute to 1. End viewers of the chart can drag the legend around on the chart. |
legendScrollBgColor | Color | Hex Code | If you've too many items on the legend, a scroll bar shows up on the same. This attribute lets you configure the background color of the scroll bar. |
legendScrollBarColor | Color | Hex Code | If you've too many items on the legend, a scroll bar shows up on the same. This attribute lets you configure the bar color of the scroll bar. |
legendScrollBtnColor | Color | Hex Code | If you've too many items on the legend, a scroll bar shows up on the same. This attribute lets you configure the color of buttons of the scroll bar. |
reverseLegend | Boolean | 0/1 | You can reverse the ordering of datasets in the legend by setting this attribute to 1. |
interactiveLegend | Boolean | 0/1 | This attribute lets you interact with the legend in your chart. When you click a legend key, the dataplots associated with that series are eliminated from the chart. Re-clicking the key causes the dataplots to reappear. |
legendNumColumns | Number | Positive Integer | If your chart contains multiple series, the legend is displayed as a grid comprising of multiple legend keys. With the help of this attribute you can specify the number of columns that are to be displayed in the legend. |
minimiseWrappingInLegend | Boolean | 0/1 | Whether to minimize legend item text wrapping. |
Back to top ![]() |
Number Formatting |
FusionCharts v3 offers you a lot of options to format your numbers on the chart. Using the attributes below, you can control a myriad of options like:
|
Attribute Name | Type | Range | Description |
formatNumber | Boolean | 0/1 | This configuration determines whether the numbers displayed on the chart will be formatted using commas, e.g., 40,000 if formatNumber='1' and 40000 if formatNumber='0 ' |
formatNumberScale | Boolean | 0/1 | Configuration whether to add K (thousands) and M (millions) to a number after truncating and rounding it - e.g., if formatNumberScale is set to 1, 10434 would become 1.04K . Same with numbers in millions - a M will added at the end. For more details, please see Number Formatting section. |
defaultNumberScale | String | The default unit of the numbers that you're providing to the chart. For more details, please see Number Formatting section. | |
numberScaleUnit | String | Unit of each block of the scale. For more details, please see Number Formatting section. | |
numberScaleValue | String | Range of the various blocks that constitute the scale. For more details, please see Number Formatting section. | |
numberPrefix | String | Character | Using this attribute, you could add prefix to all the numbers visible on the graph. For example, to represent all dollars figure on the chart, you could specify this attribute to ' $' to show like $40000, $50000. For more details, please see Number Formatting section. |
numberSuffix | String | Character | Using this attribute, you could add prefix to all the numbers visible on the graph. For example, to represent all figure quantified as per annum on the chart, you could specify this attribute to ' /a' to show like 40000/a, 50000/a. For more details, please see Number Formatting section. |
decimalSeparator | String | Character | This option helps you specify the character to be used as the decimal separator in a number. For more details, please see Number Formatting section. |
thousandSeparator | String | Character | This option helps you specify the character to be used as the thousands separator in a number. For more details, please see Number Formatting section. |
decimals | Number | 0-10 | Number of decimal places to which all numbers on the chart would be rounded to. |
forceDecimals | Boolean | 0/1 | Whether to add 0 padding at the end of decimal numbers. For example, If you limit the maximum number of decimal digits to 2, a number like 55.345 will be rounded to 55.34. This does not mean that all numbers will be displayed with a fixed number of decimal places. For instance 55 will not be displayed as 55.00 and 55.1 will not become 55.10. In order to have fixed number of decimal places attached to all the numbers, set this attribute to 1. |
forceYAxisValueDecimals
Since v 3.2 |
Boolean | 0/1 | Whether to forcefully attach decimal places to all y-axis values. For example, If you limit the maximum number of decimal digits to 2, a number like 55.345 will be rounded to 55.34. This does not mean that all y-axis numbers will be displayed with a fixed number of decimal places. For instance 55 will not be displayed as 55.00 and 55.1 will not become 55.10. In order to have fixed number of decimal places attached to all y-axis numbers, set this attribute to 1. |
yAxisValueDecimals | Number | 0-10 | If you've opted to not adjust div lines, you can specify the div line values decimal precision using this attribute. |
Back to top ![]() |
Font Properties |
Using the attributes below, you can define the generic font properties for all the text on the chart. These attributes allow you a high level control over font properties. If you intend to specify font properties for individual chart elements (like Caption, sub-caption etc.), you'll need to use the STYLES feature of FusionCharts v3. Using STYLES, you can also specify advanced font properties like Bold, Italics, HTML Mode etc. |
Attribute Name | Type | Range | Description |
baseFont | String | Font Name | This attribute lets you set the font face (family) of all the text (data labels, values etc.) on chart. If you specify outCnvBaseFont attribute also, then this attribute controls only the font face of text within the chart canvas bounds. |
baseFontSize | Number | 0-72 | This attribute sets the base font size of the chart i.e., all the values and the names in the chart which lie on the canvas will be displayed using the font size provided here. |
baseFontColor | Color | This attribute sets the base font color of the chart i.e., all the values and the names in the chart which lie on the canvas will be displayed using the font color provided here. | |
outCnvBaseFont | String | Font Name | This attribute sets the base font family of the chart font which lies outside the canvas i.e., all the values and the names in the chart which lie outside the canvas will be displayed using the font name provided here. |
outCnvBaseFontSize | Number | 0-72 | This attribute sets the base font size of the chart i.e., all the values and the names in the chart which lie outside the canvas will be displayed using the font size provided here. |
outCnvBaseFontColor | Color | This attribute sets the base font color of the chart i.e., all the values and the names in the chart which lie outside the canvas will be displayed using the font color provided here. | |
Back to top ![]() |
Tool-tip |
These attributes let you control the tool tip. You can set the background color, border color, separator character and few other details. |
Attribute Name | Type | Range | Description |
showToolTip | Boolean | 0/1 | Whether to show tool tip on chart. |
toolTipBgColor | Color | Background Color for tool tip. | |
toolTipBorderColor | Color | Border Color for tool tip. | |
showToolTipShadow | Boolean | 0/1 | Whether to show shadow for tool-tips on the chart. |
Back to top ![]() |
Chart Padding & Margins |
The following attributes help you control chart margins and paddings. FusionCharts v3 allows you manually customize the padding of various elements on the chart to allow advanced manipulation and control over chart visualization. Padding in FusionCharts is always defined in pixels, until the attribute itself suggests some other scale (like plotSpacePercent). You can also define the chart margins. Chart Margins refer to the empty space left on the top, bottom, left and right of the chart. That means, FusionCharts wouldn't plot anything in that space. It's not necessary for you to specify any padding/margin values. FusionCharts automatically assumes the best values for the same, if you do not specify the same. |
Attribute Name | Type | Range | Description |
captionPadding | Number | In Pixels | This attribute lets you control the space (in pixels) between the sub-caption and top of the chart canvas. If the sub-caption is not defined, it controls the space between caption and top of chart canvas. If neither caption, nor sub-caption is defined, this padding does not come into play. |
xAxisNamePadding | Number | In Pixels | Using this, you can set the distance between the top end of x-axis title and the bottom end of data labels (or canvas, if data labels are not to be shown). |
yAxisNamePadding | Number | In Pixels | Using this, you can set the distance between the right end of y-axis title and the start of y-axis values (or canvas, if the y-axis values are not to be shown). |
yAxisValuesPadding | Number | In Pixels | This attribute helps you set the horizontal space between the canvas left edge and the y-axis values or trend line values (on left/right side). This is particularly useful, when you want more space between your canvas and y-axis values. |
valuePadding | Number | In Pixels | It sets the vertical space between the end of columns and start of value textboxes. This basically helps you control the space you want between your columns/anchors and the value textboxes. |
chartLeftMargin | Number | In Pixels | Amount of empty space that you want to put on the left side of your chart. Nothing is rendered in this space. |
chartRightMargin | Number | In Pixels | Amount of empty space that you want to put on the right side of your chart. Nothing is rendered in this space. |
chartTopMargin | Number | In Pixels | Amount of empty space that you want to put on the top of your chart. Nothing is rendered in this space. |
chartBottomMargin | Number | In Pixels | Amount of empty space that you want to put on the bottom of your chart. Nothing is rendered in this space. |
legendPadding | Number | In Pixels | Padding of legend from right/bottom side of canvas |
canvasLeftMargin | Number | In Pixels | This attribute lets you control the space between the start of chart canvas and the start (x) of chart. In case of 2D charts, the canvas is the visible rectangular box. In case of 3D charts, the canvas box is the imaginary box around the 3D canvas.
Using this attribute, you can control the amount of empty space between the chart left side and canvas left side. By default, FusionCharts automatically calculates this space depending on the elements to be placed on the chart. However, if you want to over-ride this value with a higher value, you can use this attribute to specify the same. Please note that you cannot specify a margin lower than what has been calculated by the chart. This attribute is particularly useful, when you've multiple charts placed in a page and want all their canvas start position to align with each other - so in such a case, you can set same margin value (a value large enough that it doesn't get rejected by chart owing to it being lower than the calculated value) for all such charts in the page. |
canvasRightMargin | Number | In Pixels | Like canvasLeftMargin, this attribute lets you set the space between end of canvas and end of chart. |
canvasTopMargin | Number | In Pixels | Like canvasLeftMargin, this attribute lets you set the space between top of canvas and top of chart. |
canvasBottomMargin | Number | In Pixels | Like canvasLeftMargin, this attribute lets you set the space between bottom of canvas and bottom of chart. |
Back to top ![]() |
<categories> element |
The <categories> element lets you bunch together x-axis labels of the chart. For a multi-series chart, it's necessary to provide data labels using <category> elements under <categories> element. The following properties of <categories> element help you control the font properties of data labels. |
Attribute Name | Type | Range | Description |
font | String | Valid font face | Lets you specify font face for the x-axis data labels. |
fontSize | Number | Lets you specify font size for the x-axis data labels. | |
fontColor | Color | Hex Code | Lets you specify font color for the x-axis data labels. |
Back to top ![]() |
<category> element |
Each <category> element represents an x-axis data label. In multi-series charts, it's necessary to provide an equal number of <category> elements and data items (<set> elements within each <dataset>). FusionCharts plots only those data items for which it could find a respective <category> element. You can specify the following attribute for <category> element: |
Attribute Name | Type | Range | Description |
label | String | This attribute determines the label for the data item. The label appears on the x-axis of chart. | |
Back to top ![]() |
<dataset> element |
Each <dataset> element contains a series of data. For example, if we're plotting a monthly sales comparison chart for 2 successive years, the first data-set would contain the data for first year and the next one for the second year. You can provide data-set level cosmetics so that all data within that data-set will be plotted in the same color/alpha/etc. Also, each data-set can be named using the seriesName attribute of <dataset> element. The series name appears in the legend of the chart. In our previous example, the series name could have well been 2005 and 2006 for first and second data-set respectively. Depending on the chart type, there are a number of properties which you can define for each <dataset> element. |
Attribute Name | Type | Range | Description |
seriesName | String | Lets you specify the series name for a particular data-set. For example, if you're plotting a chart to indicate monthly sales analysis for 2005 and 2006, the seriesName for the first dataset would be 2005 and that of the second would be 2006. The seriesName of a data-set is shown in legend. | |
color | Color | Hex Code (Or Comma separated list) | This attribute sets the color using which columns, lines, area of that data-set would be drawn. For column chart, you can specify a list of comma separated hex codes to get a gradient plot. |
alpha | String | 0-100 or Comma Separated List | This attribute sets the alpha (transparency) of the entire data-set. |
showValues | Boolean | 0/1 | Whether to show the values for this data-set. |
valuePosition
Since v 3.2 |
String | ABOVE, BELOW, AUTO | This attribute lets you adjust the vertical alignment of data values for all dataplots in the dataset. The alignment is set with respect to the position of the dataplots on the chart. By default, the attribute is set to AUTO mode in which the alignment of each data value is determined automatically based on the position of each plot point. In ABOVE mode, data values are displayed above the plot points unless a plot point is too close to the upper edge of the canvas. While in BELOW mode, data values are displayed below the plot points unless a plot point is too close to the lower edge of the canvas. The attribute will function only if showValue attribute is set to 1 in this particular data-set. |
dashed | Boolean | 0/1 | Whether this data-set would appear as dashed. |
includeInLegend | Boolean | 0/1 | Whether to include the seriesName of this data-set in legend. |
drawAnchors | Boolean | 0/1 | Whether to draw anchors for the particular data-set. If the anchors are not shown, then the tool tip and links won't work for the data-set. |
anchorRadius | Number | In Pixels | This attribute sets the radius (in pixels) of the anchors of the particular data-set. Greater the radius, bigger would be the anchor size. |
lineThickness | Number | In Pixels | Thickness of the lines for the particular data-set. |
anchorBorderColor | Color | Hex Code | Lets you set the border color of anchors of the particular data-set. |
anchorBorderThickness | Number | In Pixels | Helps you set border thickness of anchors of the particular data-set. |
anchorBgColor | Color | Hex Code | Helps you set the background color of anchors of the particular data-set. |
anchorBgAlpha | Number | 0-100 | Helps you set the alpha of anchor background of the particular data-set. |
Back to top ![]() |
<set> element |
Each <set> element (child of <chart> or <dataset> element) represents a set of data which is to be plotted on the graph and determines a set of data which would appear on the chart. For a multi-series chart, it could look like: <dataset seriesName='2006'> <set value='35445' /> <set value='35675' /> .... and so on .... </dataset> In multi-series charts, you should again note that the number of <category> elements should be equal to the number of data points in each data sets, i.e., if you mention twelve categories (twelve months), the data for both years (2005 & 2006) should also contain twelve <set> elements (twelve rows of data). |
Attribute Name | Type | Range | Description |
value | Number | Numerical value for the data item. This value would be plotted on the chart. | |
displayValue | String | If instead of the numerical value of this data, you wish to display a custom string value, you can specify the same here. Examples are annotation for a data item etc. | |
toolText | String | By default, FusionCharts shows the value as tool tip text for that data item. But, if you want to display more information for the data item as tool tip, you can use this attribute to specify the same. | |
Back to top ![]() |
Vertical Trend-lines |
Vertical trend lines help you create vertical trend lines/zones on scatter (XY Plot) or Bubble charts. These are vertical lines spanning the chart canvas which aid in interpretation of data with respect to some pre-determined value. In order to add a vertical trend line to a chart, you must introduce a <line> element for each new vertical trend line within the <vtrendlines> element as under: <vTrendLines> <line startValue='895' endValue='980' color='FF0000' displayValue='Zone 1' isTrendZone='1'/> </vTrendLines> You can control the cosmetic and functional properties of vertical trend-lines using the following attributes: |
Attribute Name | Type | Range | Description |
startValue | Number | Numeric Value | The starting value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the startValue would be 102. |
endValue | Number | Numeric Value | The ending y-axis value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the endValue would be 109. If you do not specify a value for endValue, it would automatically assume the same value as startValue. |
displayValue | String | If you want to display a string caption for the trend line by its side, you can use this attribute. Example: displayValue='Last Month High'. When you don't supply this attribute, it automatically takes the value of startValue. | |
color | String | Hex Code | Color of the trend line and its associated text. |
isTrendZone | Boolean | 0/1 | Whether the trend would display a line, or a zone (filled colored rectangle). |
thickness | Number | In Pixels | If you've opted to show the trend as a line, this attribute lets you define the thickness of trend line. |
alpha | Number | 0-100 | Alpha of the trend line. |
dashed | Boolean | 0/1 | If you've opted to show the trend as a line, this attribute lets you define Whether the trend line would appear as dashed. |
dashLen | Number | In Pixels | If you've opted to show trend line as dash, this attribute lets you control the length of each dash. |
dashGap | Number | In Pixels | If you've opted to show trend line as dash, this attribute lets you control the length of each dash gap. |
toolText | String | Custom tool-text for this trendline/zone. | |
Back to top ![]() |
Trend-lines |
Using the <trendLines> element (and children <line> elements), you can define trend lines on the chart. Trend lines are horizontal/vertical lines spanning the chart canvas which aid in interpretation of data with respect to some pre-determined value. For example, if you are plotting sales data of current year, you might want to add previous year's average monthly sales as trend indicator for ease of comparison. For each trend line on the chart, you need to define a <line> element under <trendLines> element as under: <trendLines> <line startValue='895' color='FF0000' displayValue='Average' /> </trendLines> You can control the cosmetic and functional properties of trend-lines using the following attributes: |
Attribute Name | Type | Range | Description |
valueOnRight | Boolean | 0/1 | Whether to show the trend line value on left side or right side of chart. This is particularly useful when the trend line display values on the chart are colliding with divisional lines values on the chart. |
color | String | Hex Code | Color of the trend line and its associated text. |
isTrendZone | Boolean | 0/1 | Whether the trend would display a line, or a zone (filled colored rectangle). |
showOnTop | Boolean | 0/1 | Whether the trend line/zone would be displayed over data plots or under them. |
thickness | Number | In Pixels | If you've opted to show the trend as a line, this attribute lets you define the thickness of trend line. |
alpha | Number | 0-100 | Alpha of the trend line. |
dashed | Boolean | 0/1 | If you've opted to show the trend as a line, this attribute lets you define Whether the trend line would appear as dashed. |
dashLen | Number | In Pixels | If you've opted to show trend line as dash, this attribute lets you control the length of each dash. |
dashGap | Number | In Pixels | If you've opted to show trend line as dash, this attribute lets you control the length of each dash gap. |
startValue | Number | Numeric Value | The starting value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the startValue would be 102. |
endValue | Number | Numeric Value | The ending y-axis value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the endValue would be 109. If you do not specify a value for endValue, it would automatically assume the same value as startValue. |
displayValue | String | If you want to display a string caption for the trend line by its side, you can use this attribute. Example: displayValue='Last Month High'. When you don't supply this attribute, it automatically takes the value of startValue. | |
toolText | String | Custom tool-text for this trendline/zone. | |
Back to top ![]() |
The chart also accepts the following features, which have not been discussed here:
|