You can parse your data to the format accepted by CanvasJS and create 2 different datapoint arrays for the rangeArea and line dataSeries respectively.
Please check this JSFiddle for a working example.
—
Thangaraj Raman
Team CanvasJS
By default, date-time values are shown in the tooltip, even when the tooltip is shared. You can use xValueFormatString to define the format of the date to be displayed in the tooltip.
—
Thangaraj Raman
Team CanvasJS
Adding space between columns in a multi-series column chart is not possible as of now. However, as a workaround, you can use stripLines to achieve the same.
Please check this JSFiddle for a working example.
—
Thangaraj Raman
Team CanvasJS
@kmi,
CanvasJS plots the datapoints in the same order that it is passed to the chart, without sorting or grouping. interval and intervalType properties are used to display axis labels at the specified interval and not to group datapoints.
—
Thangaraj Raman
Team CanvasJS
Meena,
It is not possible to add padding/margin to indexlabels as of now.
—
Thangaraj Raman
Team CanvasJS
The current behavior while zooming is as per design. We will revisit this behavior in our future releases.
—
Thangaraj Raman
Team CanvasJS
Meena,
You can make the indexlabel more readable by either increasing the font size of indexLabels by setting indexLabelFontSize property or changing the color of indexLabels by setting indexLabelFontColor.
—
Thangaraj Raman
Team CanvasJS
We have updated the sample and it seems to be working fine now. Please use the same link shared earlier, to download the sample project.
—
Thangaraj Raman
Team CanvasJS
You can align the table with the chart by setting box-size: border-box
and updating the chart height accordingly.
Please check this updated sample project for a working example.
—
Thangaraj Raman
Team CanvasJS
Graham,
While using the trial version of CanvasJS, the script is being served from a server, however, while integrating the commercial version, it’s not.
Serving the script file from the server seems to be working fine. Please check the code snippet below which uses Express to serve CanvasJS from a server:
//demo_ServeCsv.js
var express = require("express");
var app = express();
app.get("/", function (request, response) {
response.sendFile(__dirname + "/demo_traffic_chart.html");
});
app.get("/canvasjs.min.js", function (request, response) {
response.sendFile(__dirname + "/canvasjs.min.js");
});
app.listen(8000);
console.log("Check out http://localhost:8000");
—
Thangaraj Raman
Team CanvasJS
As addressed in the previous reply, setting the height of the chart-container based on the height of the table seems to be working fine in this case. In the sample that you have shared, setting the height of 2nd chart to 279px seems to be working fine. Please find the code-snippet below.
#chartContainer-1 {
height: 279px !important;
}
—
Thangaraj Raman
Team CanvasJS
Changing the height of the chart container(div) should work fine in your case.
If you are still facing issues, kindly create a sample project reproducing the issue and share it with us over Google Drive or OneDrive so that we can look into the code, run it locally to understand the scenario better, and help you out.
—
Thangaraj Raman
Team CanvasJS
CanvasJS charts seems to be working fine with salesforce lightning web component. Please take a look at this Github Repo for the working code.
If you are still facing issues, kindly create a sample project reproducing the issue and share it with us over Google Drive or OneDrive so that we can look into the code, run it locally to understand the scenario better, and help you out.
—
Thangaraj Raman
Team CanvasJS
Jason,
It is not possible to render a grouped-stacked chart over a single axis as of now. However, you can render each stack over a different axis to achieve the same.
Please check this JSFiddle for a working example.
—
Thangaraj Raman
Team CanvasJS