-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed
Labels
Description
Version
5.5.1
Link to Minimal Reproduction
Steps to Reproduce
as in the example, data values are set in series.data and series.encode contains rules for x/y axis where x is a category axis.
Current Behavior
the boxplot series will be created using the first 5 available dimensions ignoring the encode rules.
The axis will show integer numbers instead of the category values.
Expected Behavior
encoding rules should be respected and the category values be used instead of the category index:
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
If a dataset is used with the identical values then the encode rules are respected and it works ( see example, bottom chart has 2 boxplot series)
ie:
{
...
dataset: [
{
source: [
[10, 20, 30, 40, 50, 'one'],
[33, 38, 39, 40, 55, 'four'],
[40, 45, 50, 52, 66, 'three']
]
}
],
series: [
{
name: 'Using series.data (broken)',
type: 'boxplot',
encode: { x: 5, y: [0, 1, 2, 3, 4] }, // <-- this is not being respected
data: [
[10, 20, 30, 40, 50, 'one'],
[33, 38, 39, 40, 55, 'four'],
[40, 45, 50, 52, 66, 'three']
]
},
{
name: 'Using dataset (working)',
type: 'boxplot',
encode: { x: 5, y: [0, 1, 2, 3, 4] }, // <-- this works fine
datasetIndex: 0
}
]
...
}