GeroL opened a new issue #16602:
URL: https://github.com/apache/echarts/issues/16602
### What problem does this feature solve?
I could not find a version of the candlestick chart which work by setting
different array for open, close, highest, lowest (btw: should be OHCL open
close high low)
Imagine I defined the data set like this:
var open = [1, 1, 1, 1];
var high = [4, 4, 4, 4];
var close = [3, 3, 3, 3];
var low = [2, 2, 2, 2];
var date = [1, 2, 3, 4];
var jagged = [[1, 1, 3, 4, 2], [2, 1, 3, 4, 2], [3, 1, 3, 4, 2], [4, 1,
3, 4, 2]];
chartOptions.dataset.dimensions.push("date");
chartOptions.dataset.dimensions.push("open");
chartOptions.dataset.dimensions.push("close");
chartOptions.dataset.dimensions.push("lowest");
chartOptions.dataset.dimensions.push("highest");
chartOptions.dataset.dimensions.push("jagged ");
chartOptions.dataset.source.push(date);
chartOptions.dataset.source.push(open);
chartOptions.dataset.source.push(close);
chartOptions.dataset.source.push(low);
chartOptions.dataset.source.push(high);
chartOptions.dataset.source.push(jagged);
and this series definition:
{
type: 'candlestick',
seriesLayoutBy: 'row',
dimensions: ["date", "open", "close", "lowest", "highest"],
encode: {
x: 'date',
y: ["open", "close", "lowest", "highest"]
}
}
I cannot seem to get it working with either jagged arrays or independent
arrays.
### What does the proposed API look like?
No new API just a question
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]