score:2
Accepted answer
The problem is with using categories: categories: yearmontharray,
- when you use categories, then xAxis.type is set to category
, not datetime
.
So you have a couple of solutions:
- use
formatter
for labels, there preprocess your category string to get desired output - change your format on backend side, to return categories formatter in a proper way
- instead of using categories, use datetime axis. More about can be found here.
In genera, I advice to read about axes(!) in Highcharts. The better you understand library, the better results you will have.
Source: stackoverflow.com
Related Query
- Can't change date format on Highcharts
- json date format to Highcharts date format
- Highcharts - change background color along specific date range
- Highcharts tooltip date format when using pointFormat
- HighCharts Date format
- change navigator date format in highstock
- highcharts change rendered image source on click
- Format highcharts date tooltip to display timezone
- How to add exporting date and time as user format in Highcharts exporter?
- Highcharts Single Line series JSON date data format
- Highcharts - format date for x-axis as well as autoscale (data from mysql)
- Stock Highcharts date format
- highcharts area range date format
- Format date string into highcharts
- yii highcharts how to set date format in x-axis
- Format used for date in Highcharts - Line with markers chart type
- Tooltip in Highcharts doesn't show the right format for Date
- HighCharts - Don't show line or change line style if date not reached
- Highcharts stock chart Unix date format
- Highstock Change date format dynamically on clicking range selector button
- HighCharts : xAxis Categories Date format not working
- Highcharts Label Date Format
- How to change code in "Pie Chart" in HighCharts
- How to detect the correct date format in highcharts
- Highcharts x axis date format issues
- Date format issue in highcharts
- Change json array format for highcharts
- How to add the years in xAxis date format while exporting? Also how to add the data source during the exporting?
- Highcharts - Date format from MS SQL to PHP issue
- Highcharts with date and time for x axis (from a database with format YYYYMMDDHHMM)
More Query from same tag
- Highcharts series label legend in one line
- Selecting different types of charts
- how to draw dotted line vertical line at 0 postiion in highChart
- Format of JSON output not working
- Updating speedometer data from json object created with PHP script
- highcharts: disable only a single element in legend so it cannot be clicked
- HighStock: Tooltip ignores the localization
- Changing the color of a background with highcharts.js
- highstock ie8 error
- highcharts: convert useUTC=true milliseconds to javascript Date object
- Highcharts data from google spreadsheet hide all series except one at start
- Is it possible to use R Plotly library in R Script Visual of Power BI?
- How to customize a legend in highcharts as the image and while clicking on the leg end appears lines inside linechart
- Official Typescript support for Highcharts
- HighchartsTable jQuery plugin - is it possible to have labels on axis-Y and values on axis-X
- Highcharts showing image in tooltip and get column index
- Highcharts size doesn't change on div.animate()
- Highcharts full circle gauge as in Knob js
- highcharts from event LegendItemClick to event textItemClick and iconItemClick
- Highcharts - How can I get the nearest point on click event
- 3D Pie Drilldown chart in highcharts
- How to make highchart points redirect to another component with value in React?
- How to add different series data for each categories in Stacked Column chart in Highcharts?
- 'How to read a file content until 'n' occurrences of a character and write it into a variable", using javascript?
- Issue with highchart data display when parsing JSON data
- path issue of package.json during build
- how to give click event in directive using angular js?
- Highcharts adjust first and last tick on x-axis to direct values
- How to import JSON data to Chart Array in web2py (Python)
- highcharts inside ng-repeat (AngularJS)