Axis labels are shown at every interval, which is auto-calculated such that the labels doesn’t overlap and makes chart look better. You can customize it to show labels at every value by setting interval property. Please refer documentation for more information.
—
Vishwas R
Team CanvasJS
and part of the code:
var obj=jQuery.parseJSON(data);
console.log(obj[0].Avg005); (shows 64.44 in the console)
//value = parseFloat(obj[0].Avg005).toFixed(2); (I tried to force it to be decimal but it did not work either)
// dps.push({x: 5, y: value); (I tried to force it to be decimal but it did not work either)
dps.push({x: 5, y: obj[0]Avg005 });
dps.push({x: 10, y: obj[0]Avg010 });
It seems like you are not parsing y-value properly. Parsing it properly as dps.push({x: 5, y: parseFloat(obj[0].Avg005) });
should work fine in this case.
If you are still facing the issue, kindly create JSFiddle reproducing the issue you are facing so that we can look into the code, understand the scenario better and help you resolve the same?
In order to help us in understanding the issue, please have a reproducible demo of your chart. This one step can assure you a speedy response. Fork out our template JSFiddle and reproduce the chart at your end. Try to keep it to the bare minimum by removing unnecessary code.
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.
Having a JSFiddle helps us in figuring out the issue and many a times we can just edit your code on JSFiddle to fix the issue right-away.
—
Vishwas R
Team CanvasJS
Callum,
We don’t see CanvasJS Chart code being added in the project. Please take a look at this Stackblitz for working example.
—
Vishwas R
Team CanvasJS
You can parse through the dataPoints to check if the value is greater than 5 or not before passing it to chart options to achieve this. Please take a look at this JSFiddle.
—
Vishwas R
Team CanvasJS
@giuseppe-terzaghialbarubens-it,
You can download jQuery from their CDN & serve it from your server. Please refer jQuery CDN for more info.
Please refer our jQuery Gallery for more examples on variety of use-cases which you can edit & try or download locally.
—
Vishwas R
Team CanvasJS
Please refer to this documentation page for step-to-step tutorial on rendering multiple charts within a page. The same thing works fine in Angular aswell. Please refer Angular Gallery for more examples with working code. You can also download Angular Samples from our download page to try it locally.
—
Vishwas R
Team CanvasJS
You can add click event handler to each dataPoint (each section of the funnel). Please refer documentation page for more information along with live example.
—
Vishwas R
Team CanvasJS
As mentioned in the previous reply, rendering the chart within shown.bs.modal event seems to be working fine. Please take a look at this updated project.
—
Vishwas R
Team CanvasJS
Setting height to the chart-container and rendering chart on shown.bs.modal event should work fine in your case. Please take a look at this JSFiddle.
—
Vishwas R
Team CanvasJS
Priyank,
You seemed to be passing string to x-value within Returning Visitors data because of which it’s not rendering chart properly. As of now, CanvasJS supports number and date-time in x-value. You can use label to pass string that has to be displayed over axis. Please take a look at this updated JSFiddle.
It would help us understand your scenario better if you could share us working JSFiddle that reproduces the issue. The JSFiddle that you have shared doesn’t seems to be working.
—
Vishwas R
Team CanvasJS
Yes, it’s possible to arrange slices of pie from smallest to largest by sorting dataPoints in ascending order before rendering the chart. Please take a look at this JSFiddle.
—
Vishwas R
Team CanvasJS
Incase of area charts, dataPoint y-values start from 0 – because of which the color of dataseries overlaps. Based on the example that you have shared, i would suggest you to use Stacked Area Chart.
—
Vishwas R
Team CanvasJS
Thanks for bringing it to our notice. We will check if there is any issue in the default value for smaller height of the chart and update accordingly.
—
Vishwas R
Team CanvasJS