score:9
Are you using HighStock graph?
If yes...
Sure, it takes a lot of data to get grouping. If datagrouping option is enabled, Highstock handle automatically the switch between every grouping mode. So if you don't have a lot of data, it will not work with default settings
So, if you want to group by default, you need to force the grouping.
series:[{
[...]
dataGrouping: {
approximation: "sum",
enabled: true,
forced: true,
units: [['month',[1]]]
}
}]
EDIT
Here is a working example demo (fork of a basic highstock demo) http://jsfiddle.net/NcNvu/
Hope it helps! Regards
score:1
We tried a Hack around this, where we used Highstock's (Splinechart) RangeSelector, Event and DataGrouping. On click of weekly rangeselectorButton we catch this event through setExtremes. Post catching the event approximate it to "sum". If you are using two series than iterate the object. Currently doing it weekly just extend it for Monthly using corresponding UNIT
events: {
setExtremes: function (e) {
if (e.rangeSelectorButton != undefined) {
var triger = e.rangeSelectorButton;
if (triger.type == 'week') {
$.each(this.series, function (index, obj) {
obj.options.dataGrouping.units[0] = ['week', [1]];
});
} else if (triger.type == 'day') {
$.each(this.series, function (index, obj) {
obj.options.dataGrouping.units[0] = ['day', [1]];
});
}
}
}
},
Source: stackoverflow.com
Related Query
- Data Grouping - Monthly (end-of-month)
- Monthly data in highcharts without explicitly providing all month label
- Data grouping into weekly,monthly by user
- Advanced LINQ Grouping and Projection Query for Hierarchical Data (EF 4.0 + LINQ + ASP.NET MVC + HighCharts)
- Highcharts - Global configuration with common code and unique data & Headings
- Adjust Highcharts data grouping based on range selector
- Rails 4 + Filtration of Data on the basis of Day, Week, Month and Year in HighCharts
- Data with timestamp group to month(like Jan, Feb, March) and showing as total count for month in Highcharts
- Codeigniter highcharttable count how many data in a month
- HighCharts: How to Determine on Click Event what Data Grouping the Chart is Currently In?
- Highchart datetime x-axis : display end of month date instead of first day of month
- Highcharts show the same yAxis start and end value with multiple data series
- Is data grouping supported in Highcharts?
- Change color code on colum, depending on data value (highchartJS)
- Have an issue with JavaScript, AJAX code displaying data
- Highstock Column Chart - data grouping causes data to scroll independently of axis
- Highcharts display label for pie chart using html table as data source
- Highcharts js set last month x axis data
- high chart data grouping is not considering all the values while zooming
- Include additional highcharts source data in angular2 app
- Vaadin Charts (Highcharts) - Range Selector - Monthly Data
- Updating point color with data grouping
- HighCharts : Update a point when grouping data
- Strange character in the Highstock source code
- How to find sum of grouping data in highcharts
- In highchart of column type and xaxis of datetime type showing more ticks for month data
- Set a maximum for data grouping in Highstock charts to prevent from grouping
- Highcharts series visibility with csv data source
- HTML table as data source for highstock charts using highcharts
- How to display monthly data in Highcharts graph?
More Query from same tag
- Highcharts drilldown on area chart
- HighCharts line series not displaying properly with stacked bar combo chart
- how to add annotation text to a Highcharts chart?
- JSHint and grunt.js - Highcharts is not defined
- Combination of ohlc and line plot in highchart
- Highcharts - load and refresh csv
- use on click for pie react-highcharts without overriding default onclick function
- highcharts stacked column weird symbol in a bubble
- Highcharts custom SVG marker
- Change Highmaps map colour
- How to customize the label for navigator in highstock
- Wants to change the marker color HighCharts
- Trying to load data from a textfield to highchart
- How to achieve linear gradient for bar graph in highcharts
- sorting categories in a highcharter stacked column chart
- Drill down in Line Chart Highcharts
- Spring / Thymeleaf: Property or field 'title' cannot be found on null. Why?
- How to check if the column is empty or not in csv , if column is not empty than print data else print something
- Is a 1D flag chart possible?
- Highcharts Scrollbar up arrow throws error on click
- how to set the height of subtitle in highchart without defining height of the container?
- problems charts jquery highcharts
- How to add flags to countinuous update angular highcharts
- Multiple series data on HighCharts column
- Tooltip modification in Highchart Js
- Javascript syntax when setting a value
- Pie chart with two circles need to change background color in inner circle
- Is it possible to combine mutiple charts with one navigator in highcharts stock?
- Specific graph in highcharts
- highcharter: BoxPlot Outliers not being on correct x-axis point