Home › forums › Using CanvasJS › Problem when re-rendering chart (negative scale) › Reply To: Problem when re-rendering chart (negative scale)
After rendering the chart you can update it by changing/updating its options property. We do not suggest creating new chart each time. You can update chart as shown below.
`chartObject.options.data.dataPoints = [array];
and please refer to “Alternate way of setting / updating data” section of this article.