Using Highcharts I would like to get my graph to start directly next to the labels of the Y-Axis and to end where the x-axis ends. As you can see in the link below it starts with a lot of spacing to the left and a lot of spacing to the right.
相关问题
- How to determine +/- sign when calculating diagona
- Seaborn HeatMap - How to set colour grading throug
- Direction of tick marks in matplotlib
- Issues using highcharts node export server from Cl
- Adjacency list with O(1) look up time using HashSe
相关文章
- Mercurial Commit Charts / Graphs [closed]
- Change color of bars depending on value in Highcha
- Changing Highcharts data series type dynamically
- Sankey diagrams in Python
- Set highcharts y-axis min value to 0, unless there
- Java: Traveling Salesman - Found polynomial algori
- high chart sample
- Generating a Voronoi Diagram around 2D Polygons
This is not possible since you are using categories for the
xAxis
. Labels and points for categories are always set in the middle of the category. The first and last category therefore have the gap you want to get rid of. Try removingcategories
, the space should be gone.This is not a bug or problem, it's a feature.
You could try and modify your
xAxis
to use a normal axis not categories and use a custom labelformatter
to display the desired values instead of numbers.Or You could try using data options with points and pass it in the
formatter
.see result http://jsfiddle.net/xaeSN/2/
The above solutions or accepted answer had an issue, when you mouseover on the graph the tooltip is showing index of the x-axis instead of label name. I fixed the issue with below solution SO link and attached a link to it.