@alexg00,
Events are bound to the Stockchart only once during instantiation and not when the StockChart is re-rendered.
— Thangaraj Raman Team CanvasJS
@phil-delhaisegmail-com,
You can show the context menu by checking if the click has occurred in the legend bounds with the help of legend bounds.
Please take a look at this JSFiddle for an example on the same.
@lujakob,
You can add an offset to the x-values in the line chart in order to align them to their respective columns as shown in the code snippet below:
dps1.push({label: chart.data[0].dataPoints[i].label, x: chart.data[0].dataPoints[i].x - 0.25, y: yPercent1}); dps2.push({label: chart.data[0].dataPoints[i].label, x: chart.data[0].dataPoints[i].x + 0.25, y: yPercent2});
Please check this updated StackBlitz for a working example.
You can add another column dataseries to the chart, and apply the same logic as in the Angular Pareto Chart gallery example to create another line series.
Please take a look at this StackBlitz for a working example.
@anirudhspriyan,
Please take a look at this gallery page for an example of a dynamic chart that updates every 1 second, created in Angular. This example uses random data, however, you can pass sensor data to the chart every 1 second to achieve your requirement.
Justine,
Can you 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?
@uncleboss12,
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.
@rain,
Can you kindly brief us further on your requirement with a pictorial representation or a JSFiddle so that we can understand your requirement better and suggest an appropriate solution?
@rohanreddyg,
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.
@raj-ranjan,
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.
@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.
Meena,
It is not possible to add padding/margin to indexlabels as of now.
@ukimuzik,
The current behavior while zooming is as per design. We will revisit this behavior in our future releases.
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.
@mridula,
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.