Hello.
I've created plugin which drawn bar char. I used 'BarSeries' from @elastic/charts.
I have object array where any object contains one value for x and few values for y.
My BarSeries configuration:
data.map((data,i)=>(
<BarSeries
key={bar-${i}
}
id={getSpecId(data.xValue)}
yScaleType={ScaleType.Linear}
xScaleType={ScaleType.Ordinal}
xAccessor="xValue"
yAccessors={["yValue1", "yValue2", "yValue3", "yValue4"]}
splitSeriesAccessors={["g"]}
data={[data]}
/>
))}
Output:
I've marked problem places with red circles. Can i configure 'BarSeries' for fix problem with bar position relativetely to x? Can i change width of bars?
I didn't find something usefull for my problem at interface SeriesAccessors and interface SeriesSpec.