Comments (11)
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.
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.
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.
Hmm, that's odd. Can you paste that JS?
from chartkick.
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.
Maybe I misunderstood this comment.
The thing is, the exact timestamp from group_by_day works just fine.
Can you elaborate?
from chartkick.
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.
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.
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.
so, if you only have like 3 datas, x axis always shows hours instead of date?
from chartkick.
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)
- Make chart download link image visible at all times HOT 2
- Better adding of plugins to Chart.js with Chartkick HOT 9
- Charts stuck at "Loading..." [example included] HOT 4
- CSP compliance breaks when used with Turbo Drive w/ and random nonce generator HOT 3
- Add support for chart.js 4.x HOT 3
- Add combo bar/line charts HOT 2
- Jruby Support HOT 1
- Support for Apex Charts HOT 1
- Add support for limiting the serie to a certain time frame HOT 1
- Support for polar (spiderweb) charts HOT 1
- Demo not rendering correctly in Safari HOT 2
- `createChart` is not fired after Turbo Frame renders the view HOT 8
- Comparisons in Two Date Ranges HOT 1
- Error importing Chartkick object HOT 2
- Provide ES module for JS with default exports HOT 1
- Rails 7 Setup Additional Step Needed HOT 4
- Canvas accessibility options like aria-label HOT 1
- preffix and suffix on column HOT 1
- X-axis is converted to integers even if datapoint contains alphanumeric characters HOT 1
- Some plugins not (fully) working with Chartkick with Importmaps HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartkick.