c3 icon indicating copy to clipboard operation
c3 copied to clipboard

New chart type request: candlestick charts

Open ryan-maus opened this issue 10 years ago • 23 comments

I think it would be useful to have a type of timeseries chart that renders as a candlestick chart. The config could look something like this

var chart = c3.generate({
    data: {
        x: 'x',
        columns: [
            ['x', '2013-01-01', '2013-01-02', ...],
            ['data1', {high: 10, low: 4, open: 9, close: 8}, ...]
        ]
    },
    axis: {
        x : {
            type: 'timeseries'
        }
    }
}

ryan-maus avatar Apr 03 '14 18:04 ryan-maus

Hi, thank you for the request. This looks nice. I'd like to add this feature, but it would be in version 0.2.x or higher.

masayuki0812 avatar Apr 05 '14 08:04 masayuki0812

+1

ghost avatar Aug 28 '14 02:08 ghost

+1

daxreyes avatar Nov 06 '14 08:11 daxreyes

This sounds like a good candidate for a plugin idea. Alas, until #351 is complete, that is not possible. Adding on hold and closing, will reopen once plugin infrastructure is in place.

aendra-rininsland avatar Dec 17 '14 14:12 aendra-rininsland

Reopening after discussion with @masayuki0812 re: how to handle on hold issues.

aendra-rininsland avatar Dec 25 '14 13:12 aendra-rininsland

Any news on the candlestick charts?

hristod avatar May 19 '15 13:05 hristod

Any updates on this? I've been trying to find a hack, but I don't like the idea of using stacked bar/column charts to fake candlesticks. Actually, I'm trying to do "floating" column charts, which are essentially boxplots without the whiskers. (I spent a few hours using Google Charts last night, only to find I'd wasted my time because the scripts don't work in WordPress. C3.js scripts, however, work fine in WordPress.)

ultrageek avatar Mar 10 '16 12:03 ultrageek

update?

MarcGodard avatar May 02 '16 15:05 MarcGodard

Any updates?

Nikcrysis avatar Jun 03 '16 14:06 Nikcrysis

+1

TruDan avatar Aug 10 '16 15:08 TruDan

boxplot would really great to have... any chance this could go in soon?

stevewirts avatar Nov 07 '16 22:11 stevewirts

+1

Anniepoo avatar Jul 20 '17 23:07 Anniepoo

Just wondering at the state of this discussion? I'd be willing to put in some dev time getting box plot / candlestick (which aren't quite the same thing BTW) implemented as a feature here, but haven't spent much time digging in the current code to know how much effort we'd be talking about.

kidwellj avatar Aug 07 '17 10:08 kidwellj

both these plot types would be quite useful

On Mon, Aug 7, 2017 at 6:26 AM, Jeremy Kidwell [email protected] wrote:

Just wondering at the state of this discussion? I'd be willing to put in some dev time getting box plot / candlestick (which aren't quite the same thing BTW) implemented as a feature here, but haven't spent much time digging in the current code to know how much effort we'd be talking about.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/c3js/c3/issues/121#issuecomment-320627993, or mute the thread https://github.com/notifications/unsubscribe-auth/AC6Sp7f6dTOuYkJUP3iam4zP5MzSiPVCks5sVuZQgaJpZM4BvdpI .

stevewirts avatar Aug 08 '17 01:08 stevewirts

+1 really would love candlestick charts

z1mmz avatar Aug 17 '17 12:08 z1mmz

+1

ahmednoureldeen avatar Sep 04 '17 16:09 ahmednoureldeen

+1

rszemplinski avatar Sep 07 '17 16:09 rszemplinski

+1

MarcGodard avatar Jan 19 '18 01:01 MarcGodard

+1

cristiandan avatar Apr 26 '18 16:04 cristiandan

I dunno if anything happened with this, but with a combination of css and a stacked bar chart you can give the impression of a boxplot/candlestick chart

However, you do have to process your data first to give the correct gaps/heights

https://jsfiddle.net/uphokkax/1/

martingraham avatar May 09 '18 14:05 martingraham

Hi, starting from the @martingraham 's code I have made the next code to integrate candlestick chart with c3: https://jsfiddle.net/Sergio11/wcztb3vy/ Hopefully soon c3 have candlestick charts natively

SergioMerinoGesternova avatar Nov 08 '18 14:11 SergioMerinoGesternova

+1

IntusFacultas avatar Apr 15 '20 23:04 IntusFacultas

+1

adamwiw avatar Feb 20 '21 17:02 adamwiw