-
FEATURED COMPONENTS
First time here? Check out the FAQ!
ZK Charts has now been upgraded to version 2.1, bringing new features like box plot, tree map and polygon series!
Hi,
I noticed some different behavior (from version 2.0.1).
The tooltip and big number divider changed: before it was "," now its " " (empty) http://i.imgur.com/EmJi888.png
If you have two (or more) overlapping points (same x/y values) its random which gets selected when you hover. In the version before it was always the "last" drawn (the one you see). http://i.imgur.com/8e53oTm.png / http://jsfiddle.net/LLExL/5319/
Are these bugs or intended behavior (haven't read anything in the release notes)?
Both changes are from Highcharts.
ZK Charts 2.1 uses Highcharts 4.1.5, and the default thousands separator has been changed to " " (a single space) since 4.1.0, see highcharts doc, but that can be changed by setting the global option
Options options = new Options();
options.getLang().setThousandsSep("~");
chart.setOptions(options);
ZK Charts 2.0.1 uses Highcharts 4.0.4, the tooltip behavior is exactly the way you described, always showing the last drawn, like 4.0.4 sample, but in Highcharts 4.1.5, they are now showing the first drawn (didn't notice the random behavior), like 4.1.5 sample, if you would like to see the tooltip for overlapping points, you can use the shared
option in tooltip, like shared sample, or chart.getTooltip().setShared(true);
in ZK Charts.
Hi,
I got another issue. I want to set the "ThousandsSep" to "," (comma) like it was before (at least for us). The chart is not displaying it!
Options options = new Options();
options.getLang().setThousandsSep(",");
charts.setOptions(options);
I tried setting it to "~" like you suggested, which is working. Even "." (dot) is working. I found a fiddle, so Highcharts is capable of displaying a comma -> http://jsfiddle.net/eeDnv/456/
-edit-
options.getLang().setDecimalPoint(",");
is working, so "comma" is not a problem.
-edit2-
options.getLang().setThousandsSep("<span>,</span>");
is working as a workaround.
Is this a bug or is it not possible to display a comma as a separator for thousands?
Asked: 2015-10-21 07:47:25 +0800
Seen: 72 times
Last updated: Oct 27 '15