search

Home  >  Q&A  >  body text

javascript - How to click the time switch button in hightchart to change the x-axis display content

Default day, the x-axis shows hours, switch to month, the x-axis shows 04/28

世界只因有你世界只因有你2741 days ago472

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-19 10:30:16

    The data in the daily dimension should be different from the data in the monthly dimension, right?
    For example, when it is calculated by day, it is one point every hour, and when it is calculated by month, it is one point every day.
    If this is the case, trigger Highcharts.chart(idSelector, options) when clicking the switch button and redraw it using another configuration.

    reply
    0
  • Cancelreply