score:42
Accepted answer
You can set the tickInterval (http://api.highcharts.com/highstock#yAxis.tickInterval) on the axis http://jsfiddle.net/blaird/KdHME/
$(function () {
var chart1 = new Highcharts.Chart({
chart: {
renderTo: 'Div1',
width: 600,
height: 400
},
credits: {
enabled: false
},
title: {
text: 'Productivity Report',
x: -20 //center
},
xAxis: {
lineColor: '#FF0000',
categories: [1, 2, 3]
},
yAxis: {
min: 0,
max: 140,
tickInterval: 20,
lineColor: '#FF0000',
lineWidth: 1,
title: {
text: 'Values'
},
plotLines: [{
value: 0,
width: 10,
color: '#808080'
}]
},
tooltip: {
valueSuffix: ''
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
name: 'Value',
data: [
[1, 10],
[2, 20],
[3, 30]
]
}]
});
});
score:2
To do this using HighChart in a StockChart mode, I just need to set the property tickPixelInterval.
yAxis: {
...
tickPixelInterval: 35
...
}
Source: stackoverflow.com
Related Query
- how to set the interval of points on Y - Axis highcharts
- how to set the interval of points on Y - Axis highcharts
- How to set the z-index of points on a HighCharts scatter plot?
- How to set interval points on the x-axis in HighCharts?
- How can I set the units on multiple axis on Highcharts
- How to set the x axis of HighCharts to intake DateRange
- how to set the interval of points if I have 2 Y axes
- How to plot the X axis data point for uneven tick interval at in Highcharts
- How to set the width within axis label in highcharts
- How replicate the value of Y Axis on both sides of the axis in Highcharts
- Highcharts - How to set custom colors for the series
- Highcharts Bar Chart - How to set the minimum bar width/length
- How can I delete all of the points from a highcharts series
- How to add new points to highcharts after plotting the first 'n' points?
- Highcharts (Highstock) how to manually set the navigator selected range
- How do I set the background color of a Highcharts HTML label?
- How do I put Icons in the y Axis for a Dynamic Highcharts chart?
- highcharts pie monochrome: how to set the default color?
- Highcharts - how to create multiple y axis and group the data series
- how to display 2 same highcharts without duplicate the code
- How can I set the alignment for individual axis labels in highcharts?
- Highcharts how to create legends based on the value of points
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- How do I set the margin to bottom of a chart in HighCharts to zero?
- How to decrease sensitivity of automatic axis adjustment in Highcharts when dragging points
- Highcharts - How do I keep both line points in from splitting between the two bar charts
- How do I plot the x axis line using Highcharts when pegged at 0?
- How to set Y axis with equal interval in Highcharts?
- How to tell Highcharts to set date on the x axis, and use a range of time (like 1 day)
- My Highcharts graph with multiple axis ignores the max value I set for the first yaxis
More Query from same tag
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- Highcharts map example not working
- Highcharts, changing legend icon to represent image
- Highcharts: Dynamically change single column width to highlight one sample
- Changing themes using highcharts-angular
- How to change color of line above or below specify curve line in Highcharts?
- How can I replace the term "Week" in highcharts Gantt Chart Timeline?
- HighCharts Errorbar with irregular time series interval
- Make a text box appear on dragging point in highchart or an editable tooltip
- Column Chart with condition-based coloring in R and highcharts
- Highcharts JSON decimal data format issue
- PHP and highcharts: add mysql results as new column in CSV file
- How to update the highcharts.js to make the export server to my own ipaddress,instead of connect to the highcharts server?
- Is it possible to create trading graph in react native (like in photo)?
- The HighCharts CSV export module went missing
- How to show current value on two x-axis using Highcharts?
- Highcharts footer spacing
- Highcharts - how can I change font size?
- incorrect highcharts export server js script error codes
- highcharts via json how to get the xAxis?
- R Shiny Highchart, change line width on click
- How to hide data in a series in highcharts boxplot?
- How to get id for every data point in highchart
- Adding a custom drop down to highstock range selector menu
- VBA User Defined Function returning strange or no results
- DotNet HighCharts Exporting in Web Forms Asp.net
- Bringing a time series to the front in Highcharts
- HighCharts trouble with the x axis
- Enable Horizontal Scrollbar in Highcharts with Multiple Pie Charts
- Is it possible to get axis lines to cross with highcharts