Home › forums › Using CanvasJS › Problem Line-Chart / Chart header
I have two problems which I can’t solve at the moment.
1) I have a Bar Chart with two Lines (target values and limits). My Problem here is, I can’t get the lines to start at the very beginning of the x-axis and end at the very end of the x-axis.
2) I need to be able to add HTML-Code to Headlines, will this be possible in the near future?
You can use stripLines on axisY to achieve the above requirement. Please take a look at the documentation page for more information and live example.
HTML is not supported in title as of now. However, you can use unicode to show subscript as shown in this JSFiddle.
Thank you for your help!
I have two identical charts the only difference is that one chart is bigger (size). How can I assure that both y-axis are automatically identical without having to manually set the interval and maximum value?
The interval and range of axis are calculated based on the height and width of the chart. You can use get method to fetch the interval, maximum and minimum value of the axisY from the first chart and set the same value for the second chart using set method as shown in this JSFiddle.
You must be logged in to reply to this topic.