score:1
Accepted answer
the problem here is that format()
function returns a string:
// in console:
moment().format("x")
"1522407551509"
highcharts expect the x coordinate to be a number.
you can use parseint()
for the conversion:
console.log(parseint(moment().format("x")))
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/moment.min.js"></script>
Source: stackoverflow.com
Related Query
- Is there a specific way to add data points from fetch() after a chart has been built?
- Is there a way to update with new data a Radial (or Circular) bar chart after rendering?
- Add dynamic data to line chart from mysql database with highcharts
- Ember.js and Highcharts: how to render a graph only after slow-loading model data has been loaded?
- Highstock, True way of Get count of shown points after setExtreme (Zooming) - WITHOUT counting all data with MIN and MAX
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- How to remove sliced line from pie high chart if there there is only one object in data
- Adding points to Highcharts 3D scatter chart after the chart has loaded
- how to add values from a database output to the data field in Line Chart of Chart.js
- Reversing Highcharts Y-axis after the chart has been initialized
- Plotting Highcharts Chart from multiple data points in json
- Highstock chart doesn't show after it has been cleared
- How can I change highcharts events after the chart has been initialized
- Why aren’t those 2 HighCharts codes equivalent? (Or is there a way to modify a call to legendItemClick after the creation of the chart object?)
- How to show two specific data points from tabular data in Highcharts?
- I have no direct access to code but wonder if I can append my chart data points to a log file
- "TypeError: Cannot read property 'pos' of undefined" after deleting data from chart
- Trying to figure out how to assign specific colors to specific data points in Highchart Pie chart
- Highcharts with data from table, how to add custom marker for specific value from specific series?
- Highcharts displays series names but missing data points from json source
- Mark a point on a highcharts chart after that it has been drawn
- Proper way to remove all series data from a highcharts chart?
- Python: Read data from Highcharts after setExtreme
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- Using Highcharts and displaying a message over or on the chart when there is no data
- Converting svg from Highcharts data into data points
- Is there any way to highlight specific node on click | Highcharts Sankey
- (jQuery Highchart) Is there any way to put extra custom data inside Tooltip Box?
- How to add new points to highcharts after plotting the first 'n' points?
- How to extract the data from highstock chart
More Query from same tag
- Setting more than 6 decimal places in HighCharts?
- Highcharts with custom scaling in upper regions
- highcharts, possible bug setting tooltip formatter and html?
- highcharts hover.state.halo color malfunction?
- Highcharts dashed line on x axis not going all the way across
- Highcharts Bar Graph Remove Category when all bar values for category equal 0
- HighCharts: Can I call the Exporting functions directly?
- how to pass values to tooltip which not in x and y axis in highcharts
- Highcharts shared tooltip(for line series) - Change on hover ACCORDING TO PLOTBAND
- Highstock Data points connected auomatically
- Highchart, get total of visible series data after setExtremes
- Highcharts sankey diagram, series color
- Recveived error from phantomjs:ERROR: While rendering, there's is a timeout reached
- Slow Highcharts performance with thousands of series
- Custom series connecting line
- how can I move yAxis labels from Right of chart to left of chart in highstock
- How to embed solid Gauge using highcharts inside a div of a specific size
- Series Not Working in HighCharts
- Highchart Sankey is not working with same from value as to value settings
- Format Highcharts chart tooltip pointFormat in formatter
- Is it possible to trigger tooltip in highchart of a line chart ONLY when the mouse hovers over the point?
- Retain Marker color on Line History Series in Highchart
- Highcharts column stacking within a series only
- Highmaps from sharepoint data
- Highchart: Bar Chart with time duration
- Highcharts polar : series appear over others when toggle to visible
- *Highchart* Disable the legend item click
- How do I unbold title of Highcharts' legend?
- Seeking Guidance on Implementing HighCharts in Joomla
- Showing Context Menu on right click of High Chart series