javascript - Highcharts PDF download with more categories -
i have 50 charts comprised of basic column , basic bar charts. user can download required charts pdf conditions. @ time time of downloading these charts pdf have common method call executed report types. consider categories on each type of charts generate customized pdf size customizing options sourcewidth , sourcehight. 1 potential problem face when there huge number of categories on axis. assume, have basic bar graph more categories on axis , want see of them on downloaded chart(assume in 1000 categories). can increase soucehight value , required chart case. but, have basic column charts have categories on opponent axis basic bar chart. let assume, have datetimehour values on axis period of 2 years , have bars located @ particular hour on these 2 years span and, have 20000 categories on axis(because of datetimehour) on downloaded chart @ least want see bars on downlaoded chart instead of datehours on axis , more in case increase soursewidth accommodate more values in downloaded pdf. but, @ application level comprises of charts, don't know proper solution download looking pdf.
i sorry can't produce exact fiddle have fiddle basic bar chart more categories on here http://jsfiddle.net/7racxxu0/14/
and assume 20000 categories on opponent axis in basic column chart second issue.
any more appreciated.
$(function () { $('#container').highcharts({ chart: { type: 'bar' }, xaxis: [{ categories: ['ghdg', 'kndfkjl', 'ytryr', 'bananas', 'pop', 'errte', 'oi', 'oranges1', 'bananas1', 'carrots1', 'appls2', 'pears2', 'wosflsj', 'ertet', 'yuyu', 'ales', 'ioi', 'opl', 'bcvcx', 'carots', 'apes1', 'opop', 'oranges1', 'yuiiui', 'carrots1', 'errt', 'oioi', 'ioo', 'bananas2', 'bfhjf', 'apples', 'xxcc', '6546', 'bananas', '646', 'tyuyf', 'rtr', 'rty', 'opuuui', 'fghf', 'tyuy', 'err', 'rewporij', 'xcvgff', 'ee', 'bvnvb', 'bnn', 'kjhfkdg', 'tytryt', '2121', 'apples1', 'xvx', 'iyyuy', 'bnbn', 'yuyu', 'fgs', 'pears2', 'orwuepr', 'ppwppw', 'crots2', 'apes', '545', 'nmvh', '855963', '96489', 'iuio', '8998', 'ghtrf', 'nff', 'cats1', 'apes2', '2333', 'itrosfgn', 'banas2', 'zasar', 'jan', 'feb', 'mar', 'apr', 'may', 'jun','jul', 'aug', 'sep', 'oct', 'nov', 'dec', , 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec', , 'jan', 'feb', 'mar', 'apr', 'may', 'jun','jul', 'aug', 'sep', 'oct', 'nov', 'dec'], min: 100 }], scrollbar: { enabled: true }, series: [{ data: [3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 3, 6, 1, 2, 6, 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6, 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6, 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6, 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6] }], exporting: { sourcewidth: 1200, sourceheight: 3200, chartoptions: { xaxis: [{ categories: ['ghdg', 'kndfkjl', 'ytryr', 'bananas', 'pop', 'errte', 'oi', 'oranges1', 'bananas1', 'carrots1', 'appls2', 'pears2', 'wosflsj', 'ertet', 'yuyu', 'ales', 'ioi', 'opl', 'bcvcx', 'carots', 'apes1', 'opop', 'oranges1', 'yuiiui', 'carrots1', 'errt', 'oioi', 'ioo', 'bananas2', 'bfhjf', 'apples', 'xxcc', '6546', 'bananas', '646', 'tyuyf', 'rtr', 'rty', 'opuuui', 'fghf', 'tyuy', 'err', 'rewporij', 'xcvgff', 'ee', 'bvnvb', 'bnn', 'kjhfkdg', 'tytryt', '2121', 'apples1', 'xvx', 'iyyuy', 'bnbn', 'yuyu', 'fgs', 'pears2', 'orwuepr', 'ppwppw', 'crots2', 'apes', '545', 'nmvh', '855963', '96489', 'iuio', '8998', 'ghtrf', 'nff', 'cats1', 'apes2', '2333', 'itrosfgn', 'banas2', 'zasar', 'jan', 'feb', 'mar', 'apr', 'may', 'jun','jul', 'aug', 'sep', 'oct', 'nov', 'dec', , 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec', , 'jan', 'feb', 'mar', 'apr', 'may', 'jun','jul', 'aug', 'sep', 'oct', 'nov', 'dec'], min: 0, max: 113 }] } } });
});
Comments
Post a Comment