Thanks for your feedback. We will look into it in future. As of now, you can refer to documentation page for complete list of options available and try out live examples.
—
Vishwas R
Team CanvasJS
I would like to put the labels inside the rectangles of the diagram, that is, instead of them being written below each rectangle – they will be written inside it vertically.
You can show text within the bar / next to bar using indexLabels. You can show indexlabel either inside or outside the bar by setting indexLabelPlacement property.
When I enter full data some of the left labels disappear (perhaps because there is no space for them) how can they be shown anyway?
Axis labels are shown at every interval, which is auto-calculated based on parameters like axis minimum, axis maximum, etc. In your case, you can show labels for every datapoints by setting interval: 1
. Please take a look at this updated JSFiddle for working code.
—
Vishwas R
Team CanvasJS
You can change the background-color of the chart by setting backgroundColor property.
If you like to set gradient or image as the background, you can set backgroundColor property to transparent & set css background property to the chart-container. Please take a look at this JSFiddle for an example.
—
Vishwas R
Team CanvasJS
Chart is not getting rendered as the line before chart instantiation is throwing error. You seem to be doing it wrong. element.innerHTML
gives you the content of the element whereas element.innerHTML = "Some Content";
is used to change the content of the element. Please refer to this MDN page for more information on innerHTML property. Please take a look at this updated JSFiddle for complete code.
—
Vishwas R
Team CanvasJS
You can disable panning in individual charts of StockChart by setting panEnabled property to false, soon after rendering StockChart & within the rangeChanged event-handler. This is not an official API & hence might get changed in future. Please find the code-snippet below.
stockChart.charts[0].panEnabled = false;
Please take a look at this JSFiddle for a working example.
—
Vishwas R
Team CanvasJS
[Update]
@arjungoel10gmail-com,
You can disable panning in individual charts of StockChart by setting panEnabled property to false, soon after rendering StockChart & within the rangeChanged event-handler. This is not an official API & hence might get changed in future. Please find the code-snippet below.
stockChart.charts[0].panEnabled = false;
Please take a look at this JSFiddle for a working example.
—
Vishwas R
Team CanvasJS
Chart seems to be rendering with 3 dataseries but datapoints passed to the chart seems to be empty. Also, we observed that you are using older version of CanvasJS. Kindly download the latest version of CanvasJS Charts from our download page.
If the issue still persists, kindly create a JSFiddle with sample data reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you resolve it.
—
Vishwas R
Team CanvasJS
It’s not possible to display indexlabels both inside & outside in pie chart, as of now.
—
Vishwas R
Team CanvasJS
Please take a look at this Gallery Page for an example on rendering chart inside jQuery modal.
If you are still facing issue, kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you out.
—
Vishwas R
Team CanvasJS
You can zoom either horizontally, vertically or both by setting zoomType property. You can try setting zoomType: "y"
to zoom vertically. Please refer to our documentation for more customization options available.
—
Vishwas R
Team CanvasJS
Based on the link that you have shared, zoomEnabled property is set at stockchart level instead of chart level. Setting it at chart level (in RSI chart) should work fine in your case. Please find the code-snippet below.
var rsiDPS = calculateRSI(data);
stockChart.addTo("charts", {height: 100, zoomEnabled: true, axisY: [{minimum: 0, maximum: 100, stripLines:[{value:30}, {value: 70}]}],data: [{type: "line", name: "Relative Strength Index (RSI)", showInLegend: true, yValueFormatString: "00", dataPoints: rsiDPS}], legend: {horizontalAlign: "left"}});
—
Vishwas R
Team CanvasJS
Glad that you figured it out :)
Yes, as you have mentioned setting toolTipContent to null will hide information related to that particular dataseries from the tooltip.
—
Vishwas R
Team CanvasJS
You can enable zooming in chart by setting zoomEnabled property to true. Please take a look at ‘Behavior of Zoom / Pan’ section in this documentation page for more information along with example.
—
Vishwas R
Team CanvasJS