Comments (15)
No problem. To confirm, I've replaced, in my local, static example, the histogram with an area series and the results are perfect for my use - I will test this shortly against the dynamic data
from lightweight-charts.
Can you provide repro without requesting data from your server (just with hardcoded values), but with creating chart and adding series?
from lightweight-charts.
As there are no documented drawing tools
Yes, we don't have any drawing tools for now and I don't remember that we have any plan to add them.
from lightweight-charts.
With static values:
https://jsfiddle.net/jimeney/Lgtrhj52/
from lightweight-charts.
Please check your data.
from lightweight-charts.
But even if I replace ue
=> ys
it fails.
from lightweight-charts.
I have noted the typo, and corrected to ys for completeness on the jsfiddle, but, as you have stated, this still fails
from lightweight-charts.
The minimal repro code:
var container = document.createElement('div');
document.body.appendChild(container);
var chart = LightweightCharts.createChart(container);
var areaSeries = chart.addAreaSeries();
var volumeSeries = chart.addHistogramSeries();
volumeSeries.setData([
{ time: '2019-05-24', value: 23714686.00, color: 'red' },
]);
areaSeries.setData([
{ time: '2019-05-24', value: 179.66 },
]);
It's a bug. We'll fix it.
from lightweight-charts.
I just created issue for that - see #110.
from lightweight-charts.
Perfect, I assume I can workaround this by setting a series level colour instead?
from lightweight-charts.
It looks like there is another issue with histogram series. I just removed setting color for each item in histogram series and it fails on painting stage...
from lightweight-charts.
No problem. I'll sight tight
from lightweight-charts.
See #110 (comment).
from lightweight-charts.
Nice catch @jimeney, thank you! This is really interesting cases 🙂
from lightweight-charts.
The 1.0.1 version is published just now.
https://github.com/tradingview/lightweight-charts/releases/tag/v1.0.1
from lightweight-charts.
Related Issues (20)
- How to stop zoom feature ? HOT 1
- `hoveredObjectId` (`subscribeCrosshairMove`) is not updated when chart is scrolled horizontally
- How to get the price of the horizontal line of crosshair HOT 2
- isFulfilledData should only consider `value` and not `open` HOT 6
- Lightweight view turns black and cannot be restored
- Change area fill color ? HOT 1
- Feature: Get priceLines from `ISeriesAPI`
- Setting addCandlestickSeries and addHistogramSeries at the same time not working HOT 1
- The "dataByIndex" always retrieves the oldest value
- 想請問charting_library 儲存庫
- Bug: invalid @babel/generator version on install (v4.2.0) HOT 2
- Lines with different y-axis values HOT 1
- How to make right side graph faded in color, while scroling the from right to left : Tradingview light Android HOT 3
- Rectangle plugin HOT 1
- Trend Line plugin doesn't respect showLabels option
- Hide price scale? HOT 1
- CDN link on Unpkg.com doesnt work. HOT 3
- Bottom part of the baseline series is obscured HOT 2
- Update from 3.8 to 4.1 and charts not automatically fit on update HOT 4
- How can I prevent setData from clearing existing line before adding a new line HOT 1
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 lightweight-charts.