You must be logged in to post your query.
Home › Forums › Chart Support › x-axis tick/labels for first and last values
Tagged: Labels, ticks, x-axis
I have ‘splineArea’ charts that has dates as the x-axis values. I cannot get the chart to display a label at the beginning and end of the data set’s values. I want a label at the ‘zero’ position (i.e. the earliest date in the series which is displayed at the intersection of the x and y axis) and a label at the last date in the series with additional labels evenly spaced in between those. Is this possible?
I’ve tried setting minimum and maximum to match the values of the first and last date values but that doesn’t change where the labels are appearing. I’ve tried playing with interval and intervalType also but can’t seem to accomplish what I’m after.
I appreciate any input. Thanks.
This feature is not available as of now.
Any update on this? I am using multiseries line chart with live data and it has dates on x-axis. I also want to display first and last label on x-axis.
Sorry, it’s not possible to control first & last label shown in axis. However, you can add striplines to show labels at viewportMinimum & viewportMaximum as shown in this JSFiddle.
Thanks for the solution. This helped me accomplishing the requirement.
You must be logged in to reply to this topic. Login/Register