Skip to content

set interval on e-chart of type 'time', there is no to set interval against only day or month or year independently  #14298

Closed as not planned

Description

@arrazsiddiqui

What problem does this feature solve?

set interval on e-chart of type 'time', there is no to set interval against only day or month or year independently.

Set interval should show axis equally after that specific interval like if we give the interval difference of 4 years only then next each date of axis must be after 4 years even if leap is there.

I want interval gap must be same if give 4 years interval or in days, Months or collectively.

consider the below link for code analysis and implementation.
http://jsfiddle.net/d7e09r5t/274/

What does the proposed API look like?

xAxis : [
       {
           type: 'time',
           boundaryGap:true,
           interval:null, 
           axisLabel: {
               formatter: (function(value){
               dates.push(value);
                   return moment(value).format('DD/MM/YYYY');
               })
           }
       }
   ],

consider the below link for code analysis and implementation.
http://jsfiddle.net/d7e09r5t/274/

Activity

  1. echarts-bot commented on Feb 19, 2021

    @echarts-bot

    Hi! We've received your issue and please be patient to get responded. 🎉
    The average response time is expected to be within one day for weekdays.

    In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

    If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question.

    If you are interested in the project, you may also subscribe our mailing list.

    Have a nice day! 🍵

  2. added
    en
    pending
    on Feb 19, 2021
  3. added and removed
    pending
    on Feb 25, 2021
  4. github-actions commented on Feb 25, 2023

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

  5. added
    stale
    on Feb 25, 2023
  6. github-actions commented on Mar 5, 2023

    @github-actions
    Contributor

    This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ennew-featurestaletopic: axis-time

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions