Skip to content

Be able to draw ticks in a non-linear way #382

Closed
@dereklin

Description

@dereklin

Hi,

Thanks for this great library. Everything is working so well so far except for ticks.

Here is my plunker: https://plnkr.co/edit/mdlI5HiUWxJ3rbNlBb4g?p=preview

There are two problem:

  1. My left handle says 2007 at the bottom, but my date is 2016-12-31
  2. The last tick doesn't have legend.

Now, in app.js, if I uncomment line 13, the ticks work as expected.

But that's not my true date range. My true date range is with line 13 commented out.

How can I have accurate ticks with my existing data points?

Can I supply my own ticks? Like:

[
...
{legend: '2011', showTick: true}, 
{legend: '', showTick: false},
{legend: '2013', showTick: true},
...
]

Or, as a compromise, can I uncomment line 13, showing a few "fake" quarters, but have the slider not go into the "fake" quarters -- setting up a boundary?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions