score:1
Accepted answer
You can always parse the received data to match the date format in highcharts: https://www.highcharts.com/docs/working-with-data/custom-preprocessing
var data = [{
"yearmonth": '2019 - 01',
"sales": 30
}, {
"yearmonth": '2019 - 02',
"sales": 66
}, {
"yearmonth": '2019 - 03',
"sales": 52
}],
parsedData = [];
data.forEach(element => {
parsedData.push({
name: element.yearmonth,
y: element.sales
});
});
A simple example: https://jsfiddle.net/BlackLabel/fsvrmd3u/
Source: stackoverflow.com
Related Query
- Import Highcharts and highcharts-more (AngularJS 1.5 + TypeScript + webpack)
- Highcharts - Global configuration with common code and unique data & Headings
- How do i add mouse wheel code in Angular2 highcharts in typescript
- How to use Highcharts in typescript and react
- hover on a point in highcharts graph using playwright and typescript
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- Typescript and HighCharts
- how can I use rangeselector and navigation in highcharts in the given code
- Calling Highcharts export to jpeg but the source is https and exporting is http (security warnings issued by browser)
- How to create a column range chart in Highcharts using range and navigator functions?
- Hide axis and gridlines Highcharts
- Customize tooltip and format the number to 2 decimal places of highcharts
- Loading Highcharts via shim using RequireJS and maintaining jQuery dependency
- jQuery UI Tabs and Highcharts display/rendering issue
- Displaying hours and minutes on x-axis with Highcharts
- Export Highcharts to PDF (using javascript and local server - no internet connection)
- Highcharts - How to programmatically toggle legend items and determine which items are selected
- Hiding _groups_ of series in Highcharts and jQuery: how to get acceptable performance?
- how to import highcharts with webpack and babel
- debugging domjs and highcharts
- Highcharts data series issue with ajax/json and PHP
- Highcharts - labels inside and outside a pie chart
- Highcharts / jQuery - destroy and rebuild chart with original options
- How do you increase the performance of highcharts chart creation and rendering
- Disable PDF and SVG download options in Highcharts
- Highcharts Pie Chart ignores percentageDecimals tooltip setting and has floating point inaccuracy issue
- How to change graph colour above and below plotline in Highcharts
- Using html2canvas to render a highcharts chart to pdf doesn't work on IE and Firefox
- HighCharts - increase bar height and reduce bar gap
- Highcharts - How to hide series name and Y value in tooltip
More Query from same tag
- chart.setOptions is not defined
- Highcharts: One Legend Controls Many Charts
- HighStock baseSeries value is not getting updated
- highchart with numberformat (unit)
- Highcharts Export Service Gantt Chart not working
- Can you create a phase change line in highcharts
- Manipulate highcharts bar
- HighCharts adding a multi-select dropdown for each column of a series
- highchart not shown data graph
- Unable to hold onto variable after fetching JSON data
- How Highstock determines date
- Highstock - Can't update using value from file, data type?
- Highchart - Custom Images for Labels by using html
- Using arearange series in highchart on inverted graphs
- Highcharts: possible to force datalabel to overlap y-axis?
- Display Highcharts data from mysql database on jsp page
- How to check if the column is empty or not in csv , if column is not empty than print data else print something
- problem with highcharts series option
- Set opacity of Highcharts pie chart
- Highcharts legendItemClick event - Stop chart auto rendering
- Implement slider in highcharts
- Highcharts grouped column labels
- Excel charting to JavaScript
- Boxplot and columns combined in a single chart with Highcharts.js
- how to create highcharts formatted json structure with python
- highcharts no point markers but show single point or discontinous points
- Highcharts dynamicly update legend with grouped values
- Getting data from a JSON result in to a chart (Highcharts)
- how to set max min on highcharts dynamically
- Highcharts version 6 dynamic annotations not applied when running getSVG()