Giter Club home page Giter Club logo

Comments (11)

ankane avatar ankane commented on May 8, 2024

Nothing. For better or worse, the charting library decides the data labels. In this case, both Google Charts and Highcharts seem to think you want hours.

from chartkick.

krainboltgreene avatar krainboltgreene commented on May 8, 2024

Bleh.

On Wed, May 22, 2013 at 11:57 PM, Andrew Kane [email protected]:

Nothing. For better or worse, the charting library decides the data
labels. In this case, both Google Charts and Highcharts seem to think you
want hours.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18326647
.

Kurtis Rainbolt-Greene, Hacker
Software Developer
612 S. Flower St.
Los Angeles, CA, 90017

from chartkick.

krainboltgreene avatar krainboltgreene commented on May 8, 2024

The thing is, the exact timestamp from group_by_day works just fine.

On Thu, May 23, 2013 at 12:01 AM, Kurtis Rainbolt-Greene <
[email protected]> wrote:

Bleh.

On Wed, May 22, 2013 at 11:57 PM, Andrew Kane [email protected]:

Nothing. For better or worse, the charting library decides the data
labels. In this case, both Google Charts and Highcharts seem to think you
want hours.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18326647
.

Kurtis Rainbolt-Greene, Hacker
Software Developer
612 S. Flower St.
Los Angeles, CA, 90017

Kurtis Rainbolt-Greene, Hacker
Software Developer
612 S. Flower St.
Los Angeles, CA, 90017

from chartkick.

ankane avatar ankane commented on May 8, 2024

Hmm, that's odd. Can you paste that JS?

from chartkick.

krainboltgreene avatar krainboltgreene commented on May 8, 2024

Which javascript?

On Thu, May 23, 2013 at 12:16 AM, Andrew Kane [email protected]:

Hmm, that's odd. Can you paste that JS?


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18327187
.

Kurtis Rainbolt-Greene, Hacker
Software Developer
612 S. Flower St.
Los Angeles, CA, 90017

from chartkick.

ankane avatar ankane commented on May 8, 2024

Maybe I misunderstood this comment.

The thing is, the exact timestamp from group_by_day works just fine.

Can you elaborate?

from chartkick.

krainboltgreene avatar krainboltgreene commented on May 8, 2024

The date strings produced by group_by_day is exactly the same format as
mine, except for some reason the charting library picks up that
group_by_day wants days.

On Thu, May 23, 2013 at 12:23 AM, Andrew Kane [email protected]:

Maybe I misunderstood this comment.

The thing is, the exact timestamp from group_by_day works just fine.

Can you elaborate?


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18327402
.

Kurtis Rainbolt-Greene, Hacker
Software Developer
612 S. Flower St.
Los Angeles, CA, 90017

from chartkick.

ankane avatar ankane commented on May 8, 2024

It's probably the number of data points. When I have roughly 10 data points (each a different day), the labels switch to days.

from chartkick.

krainboltgreene avatar krainboltgreene commented on May 8, 2024

Oh wow, that'd definitely be it! I only have 3 days worth of data.

On Thu, May 23, 2013 at 12:32 AM, Andrew Kane [email protected]:

It's probably the number of data points. When I have roughly 10 data
points (each a different day), the labels switch to days.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18327703
.

Kurtis Rainbolt-Greene, Hacker
Software Developer
612 S. Flower St.
Los Angeles, CA, 90017

from chartkick.

aldilaa avatar aldilaa commented on May 8, 2024

so, if you only have like 3 datas, x axis always shows hours instead of date?

from chartkick.

ankane avatar ankane commented on May 8, 2024

The charting library (Google Charts or Highcharts) decides whether to show hours or days based on the data. If the times are close together, it could show minutes, and if the times are far apart, it will likely show days.

from chartkick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.