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 Articles
- How do i add mouse wheel code in Angular2 highcharts in typescript
- Import Highcharts and highcharts-more (AngularJS 1.5 + TypeScript + webpack)
- how to import highcharts offline-exporting in typescript
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- JavaScript code inside TypeScript file .ts not working
- HighCharts Stock Chart error code 18
- highcharts change rendered image source on click
- how to display 2 same highcharts without duplicate the code
- Use of DotNet HighCharts dll to make charts in code behind
- How to use Highcharts in typescript and react
- How to edit tooltip in Highcharts C# code
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
- passing json values to highcharts from .net code behind
- how to use highcharts tooltip formatter in python code
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts fill map based on data values with React TypeScript
- Highcharts Map with React TypeScript
- Highcharts display label for pie chart using html table as data source
- Simple, Open source PHP wrapper for Highcharts library
- Calling Typescript function from Highcharts load event
- Can't get drilldown module to work in highcharts in typescript
- Add Source to Highcharts Export CSV
- Highcharts TypeScript Boost module
- Include additional highcharts source data in angular2 app
- Conditions within highcharts code
- Strange character in the Highstock source code
- What's the code in Highcharts such that the bars (columns) in the same group use the same color?
- Highcharts series visibility with csv data source
- HTML table as data source for highstock charts using highcharts
- Highcharts Zooming with Scroll Bar
- high charts line graph x-axis issue
- Highcharts custom scaling on y axis - mix of linear and logarithmic
- Is it possible to make all-custom point marker design in highstock?
- Highcharts Series from AJAX
- Highstock smooth panning
- Point marker disabled on normal state and enabled on select and hover states - it is not working for select state
- Django Chart using Highcharts
- Draw sankey when multiple entries have the same name
- Highcharts-NG is only listening to some of my chart config options
- Is it possible to Customize highcharts drillup button
- Is there a way to pass in variable element ID from Highcharts to launch a modal window?
- ScatterPlot Point Click Event Not Working
- Highcharts Error #15 with wrong data series displayed
- Grouping a stacked bar chart in Highcharts
- Highstocks How to change the font of the buttons of the range selecotor
- sort/arrange on date in dashboard
- How can I remove the number in the tooltip
- HighChart with large amount of data not working
- How do I create a correctly scaled x-axis?