score:2
you can pass information of color per point like this http://jsfiddle.net/gvkv4f50/1/
$(function () {
// create the chart
$('#container').highcharts('stockchart', {
plotoptions: {
ohlc: {
colorbypoint: true,
}
},
rangeselector: {
inputenabled: $('#container').width() > 480,
selected: 2
},
title: {
text: 'aapl stock price'
},
series: [{
type: 'ohlc',
name: 'aapl stock price',
data: [{
open: 8.34,
high: 8.56,
low: 5.47,
close: 6.15,
color: 'yellow'
}, {
open: 8.34,
high: 8.56,
low: 5.47,
close: 6.15,
color: 'green'
}],
datagrouping: {
units: [
[
'week', // unit name
[1] // allowed multiples
],
[
'month', [1, 2, 3, 4, 6]]
]
}
}]
});
});
if you want to ignore different coloring when open point has lower value than close point add this:
highcharts.wrap(highcharts.seriestypes.ohlc.prototype, 'getattribs', function (p, args) {
highcharts.seriestypes.column.prototype.getattribs.apply(this, args);
});
you can see how in here - http://jsfiddle.net/chybv1mt/3/
Source: stackoverflow.com
Related Query
- HighCharts OHLC - Can I provide color-information for each point with JSON-Data?
- Formatting JSON Data with ColdFusion for HighCharts
- Retrieving JSON data for Highcharts with multiple series?
- Highcharts for multiple plot lines each with a different color and show tooltip?
- Highcharts define colors for each data point in a pair
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- In a Highcharts heatmap is it possible for a data point to be ignored for the color scale?
- In highcharts how can I provide data with values x, y, title so that I can put the title in the tooltip?
- Highcharts data series label. for each data point
- Data Conversion from SQL, C# with Linq to JSON for Highcharts Line chart
- how do you create custom buttons with highcharts that each data buttons calls anather php script for its data
- Custom data label for a single point in OHLC candlestick in Highcharts
- In HighCharts, how can I make the color for each plotted point in an array dependent on a value in a corresponding array?
- Highcharts - Column chart with legend for each data
- highcharts scatter 1 second update with user defined lables on x-axis for each point
- YQL finance data JSON format for use with highcharts
- In highCharts so much space left for each category when using index with data
- JSON Data for Highcharts in Symfony2 with ObHighchartsBundle
- How can i have the same radius for each point of series with hover?
- Highcharts Set data label border color for each pie slice
- Highcharts (highcharts-ng) with ng-repeat worked, But need to pass the data for each chart from the attributes
- Reload chart data via JSON with Highcharts
- Highcharts with JSON data and multiple series
- Formatting JSON data monthwise for HighCharts using MySQL
- Highcharts - Provide URL's for series data to open clickable link
- How to output JSON in python so it can be used for Geckoboard's Highcharts plugin
- Alternatives to Highcharts for datasets with 10k data points?
- Highcharts - xAxis label for each point
- Highcharts - Global configuration with common code and unique data & Headings
- Color each point individually in column chart highcharts
More Query from same tag
- How do I send javascript on ajax request?
- PhantomJS with embedded web server uses only one CPU
- Yii Highchart extension - Change color based on value
- Highcharts gauge keep tooltip visible and centered
- Highcharts - Change line style in line gaps (null)
- Enable scrollbar using highcharts.js
- Highcharts issue when start index is less than 0
- Adding a label to the left and to the right of a bar in highcharts
- Highcharts sparse data - hide empty values
- highchart stacked column, display extremely small values in shift lable
- How can I dynamically enable/disable series tooltip based on point condition
- Delay Loading Highcharts' Chart
- dynamic threshold values in highchart - arearange
- what is wrong in this data series that high chart does not plot it?
- Adding a JSON Response to a HighCharts Graph
- Highchart tick interval for 5 days
- Highcharts display grid over plot with z-index
- Gradient Fill on Line Chart (Highcharts)
- HighStocks/HighCharts scrollbar not displaying with large datasets causing xAxis labels to disappear and making bars not show
- Define yAxis value with two different yAxis scale highcharts
- keep highcharts legend responsive when another div lies over chart
- Highcharts' navigator and dependency arrow (ganttChart)
- How to calculate the weights in a Sankey chart?
- Changing xDateFormat in highchart tooltip programatically
- How to build an Organization Chart with highcharter
- Why drilldown x-axis points not matching with corresponding bars?
- Retrieve missing column Values
- Highcharts - show blank X Axis
- highcharts polar chart with gradient color fills
- Highcharts synchronization with multiple yaxis