Reputation: 2116
I am trying to customize the charts and give a demo to our clients for their approval.
Some final issues we are facing now are,
Issue: Is pagination possible in highcharts for column charts. Suppose if we have 50 or 100 columns.
How can we avoid our charts becoming crowded .
For example take a look at this js fiddle
Issue: If we embed an image or logo in to a chart and try to export it using either either jpg
/jpeg
we get an error.
on jsfidlle it works,
but on our localhost it gives the following error message .
About to transcode 1 SVG file(s) Converting
551bc090a93c120f987375135e7744db.svg to
temp/551bc090a93c120f987375135e7744db.jpg ... ... error (
SVGConverter.error.while.rasterizing.file)
Error while converting SVG. SVG code for debugging:
Upvotes: 3
Views: 2085
Reputation: 4868
1. Crowded Charts
a. Have you tried rotating the labels? This would significantly reduce the overcrowding on the labels that you earlier had.
Here's your Fiddle with the label mod: http://jsfiddle.net/kayen/YSwk4/
b. If you have a lot of values and are restricted by space on the x-axis, you can convert your column-type chart to a bar-type chart.
Here's your Fiddle with the bar-chart mod: http://jsfiddle.net/kayen/QqPha/
I would suggest using the first option as you can fit much more values in the same space and have a much cleaner chart.
Upvotes: 5
Reputation: 2023
Let's see if I can help you...
I can imagine three ways to avoid your charts to be "crowded":
Either hide adding visible: false
to some or all your series, using this will allow the user to choose what data he wants to see. For example:
series: [
{
name: ...,
data: ...,
visible: false
},
...
]
If you choose this example you could could also think about adding a button to show/hide all, that you can achieve by using:
Hide everything:
for(i=0; i < chart.series.length-1; i++)
chart.series[i].hide();
Show everything:
for(i=0; i < chart.series.length-1; i++)
chart.series[i].show();
In alternative you can use zoomType: 'x'
in your chart allowing the user to zoom and see the data in detail, the user can then scroll with the zoom to the left and right of the chart or reset the zoom and choose another point to see.
In alternative you can create a giant chart and use overflow to allow the chart div to be scrollable, or hide the overflow and manage the scrollX
& scrollY
trough jQuery.
Can you provide the code or link to fiddle of the svg example so I can check your code and see if I can help you with that?
Thank you.
Upvotes: 8