Comments (5)
Anyone? How can one put hours and minutes in dates?
Seconds?
No example there...
from techan.js.
Unix datestamps in place of dates are not working.
How can I put data in chart with time not just date?
from techan.js.
I mean, what date format should I put here:
{
"Date": "28-Apr-2019",
"Open": "0.291600",
"High": "0.291700",
"Low": "0.291400",
"Close": "0.291700",
"Volume": "23"
},
To specify hours and minutes?
Thanks
from techan.js.
Huh, found the solution.
Located line:
var parseDate = d3.timeParse("%d-%b-%y");
Changed it to:
var parseDate = d3.timeParse("%d-%b-%y %H:%M");
Who needs dates with days only?
Very confusing examples you have here...
Anyways. now dates like "28-Apr-2019 04:30" works.
Hope it helps someone.
from techan.js.
From the samples:
Date,Open,High,Low,Close,Volume
9-Jun-14,62.40,63.34,61.79,62.88,37617413
6-Jun-14,63.37,63.48,62.15,62.50,42442096
var parseDate = d3.timeParse("%d-%b-%y");
{
date: parseDate(d.Date),
volume: +d.Volume,
open: +d.Open,
high: +d.High,
low: +d.Low,
close: +d.Close
}
Data with unix timestamp:
{
date: new Date(d.time * 1000),
volume: +d.Volume,
open: +d.Open,
high: +d.High,
low: +d.Low,
close: +d.Close
}
from techan.js.
Related Issues (20)
- all plots CSS rule hide all my icons
- Price and the volume overlap HOT 1
- Volume Simple Average HOT 2
- How to get time range?
- zoom.scale is not a function in All plots example
- <path> attribute d: Expected number, "...7.13131,NaN l 38.31212..." HOT 4
- TypeError: Cannot read property 'min' of undefined. Is d3 undefined? HOT 1
- Help please! HOT 5
- Save As Image PNG, JPG HOT 1
- Custom class per supstance HOT 1
- Can we point users of this library to the newer version "techan-js"? HOT 7
- Installation problems. Grunt (serve).
- how to add simple line to example? HOT 1
- Problems trying to enter live data,
- Gap at the end of the chart HOT 1
- is this project dead? HOT 3
- How to keep zoom intact in updating chart.
- Anyone implemented the library with React ? HOT 1
- Is it dead? HOT 8
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 techan.js.