Seems like your code is incomplete. Can you kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code / chart-options that you are using, understand the scenario better and help you out?
___
Suyash Singh
Team CanvasJS
Dinesh,
Sorry, but as of now we don’t have sunburst chart. However, please take a look at this workaround and let us know if it suits your requirement.
___
Suyash Singh
Team CanvasJS
Please contact sales[at]canvasjs.com for sales related queries.
—
Suyash Singh
Team CanvasJS
1. When the exportEnable property is set to True, buttons for external output are displayed,
Can you only hide this print button?2. With the Zoom & Panning function, is it possible to fix the scale of the Y axis when using the bar graph?
Please check this jsfiddle.
3. Is it possible to acquire X and Y axis items currently displayed in Zoom with Zoom & Panning function?
You can handle the zoom and pan events by using rangeChanged and rangeChanging methods. Also have a look at viewportMinimum & viewportMaximum which can be used to zoom programatically.
___
Suyash Singh
Team CanvasJS
@fbk,
Kindly refer this jsfiddle on creating multiseries chart from text file.
The format of the text file( e.g. dataPoints.txt ) should be:
pos 0.20 0
neg 0.17 1
neg 0.43 1
pos 0.13 0
pos 0.27 2
The last column in the text file is the dataSeries index.
___
Suyash Singh
Team CanvasJS
It seems to be working fine on IOS v10.3.1. Here’s a screenshot.
Can you kindly brief more about “doesn’t work right” means in your case?
___
Suyash Singh
Team CanvasJS
Are you looking for something like this? Also please have a look at location.pathname documentation page for more info.
In case this doesn’t solve your requirement, please share some pictorial representation or explain the problem in more detailed way, so that we can understand your requirement in a better way and help you out.
___
Suyash Singh
Team CanvasJS
Seems like the jsfiddle is working fine.
You need to create a text file say dataPoints.txt
with the content as shown below, browse it using the Choose File
input and click Open
.
pos 0.20
neg 0.17
neg 0.43
pos 0.13
pos 0.27
neg 0.19
neg 0.49
pos 0.12
If you are still facing any issue kindly reproduce the same in jsfiddle so that we can look into the issue and help you better.
___
Suyash Singh
Team CanvasJS
You can store entire chart options in JSON, read and assign it to chart options. Please refer this jsfiddle. If this doesn’t solve your requirement, kindly share the format of your json so that we can look into it and help you out.
___
Suyash Singh
Team CanvasJS
Please refer this tutorial on creating Live Updating Charts from JSON API & AJAX. The data from the JSON has to be parsed in the format required by CanvasJS.
___
Suyash Singh
Team CanvasJS
@fbk,
Kindly refer this JSFiddle for an example on creating chart with data from text file.
The format of data used in text file (dataPoints.txt):
10 20
15 25
20 15
25 33
30 9
35 15
40 20
Also refer to this documentation page for more information on using date-time values in axisX.
___
Suyash Singh
Team CanvasJS
@fbk,
Can you please provide us more information regarding the format of the dataPoints that you are storing in text file. Parsing the data stored in text file to the format accepted by CanvasJS should work fine in this case. For more information on retrieving data from a text file, please refer this stackoverflow thread.
___
Suyash Singh
Team CanvasJS