ZingChart: How do I handled quoted numeric values in my data?

ZingChart is expecting to plot numeric data in most all cases.  Unfortunately, given the loose typed nature of JavaScript and how some developers may be dealing with
numeric values as string we provide a flag on the global ZingChart object to address this.  If you set the QUOTEDVALUES flag to true like so

zingchart.QUOTEDVALUES = true;

a rendered chart will now try to convert types. 

var myConfig = {
    type: 'bar',
    series: [
            values: ["35","42","67","89"]

zingchart.QUOTEDVALUES = true;  /// default is false

    id: 'myChart',
    data: myConfig,
    height: '100%',
    width: '100%'

Example: https://demos.zingchart.com/view/FSJL2P81

Note: We set this flag to be false by default to avoid type issues.  Always be cautious when using 'dirty' data in JavaScript as your results can be unexpected.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us