Coder Social home page Coder Social logo

Comments (15)

jimeney avatar jimeney commented on May 13, 2024 1

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.

timocov avatar timocov commented on May 13, 2024

Can you provide repro without requesting data from your server (just with hardcoded values), but with creating chart and adding series?

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

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.

jimeney avatar jimeney commented on May 13, 2024

With static values:

https://jsfiddle.net/jimeney/Lgtrhj52/

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

image

Please check your data.

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

But even if I replace ue => ys it fails.

from lightweight-charts.

jimeney avatar jimeney commented on May 13, 2024

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.

timocov avatar timocov commented on May 13, 2024

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.

timocov avatar timocov commented on May 13, 2024

I just created issue for that - see #110.

from lightweight-charts.

jimeney avatar jimeney commented on May 13, 2024

Perfect, I assume I can workaround this by setting a series level colour instead?

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

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.

jimeney avatar jimeney commented on May 13, 2024

No problem. I'll sight tight

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

See #110 (comment).

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

Nice catch @jimeney, thank you! This is really interesting cases 🙂

from lightweight-charts.

timocov avatar timocov commented on May 13, 2024

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)

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.