Allow passing raw values with ContextAccessor
#2527
Labels
:data
Data/series/scales related issue
enhancement
New feature or request
:xy
Bar/Line/Area chart related
When aggregating data to pass to the
Chart
, there are some cases where the raw value is a non-primitive value. A great example of this is the range type which is an object similar to that below.Currently in many places in kibana, especially in Lens, we format these values before passing the data to the chart. This works fine for most cases but sometimes we want the raw value and determining this after the fact is complex and challenging.
The proposal is to add a
valueAccessor
to each of the accessors includingx
,y
,x0
,y0
andsplit
. This would enable something like the following, to pass the raw value and easily convert that value into a primitive value for use in the chart.This was originally suggested in #808 and POC's in #837, but at the time the functional accessors were deemed sufficient. With new context surrounding this issue, this is desired to improve chart control functions in kibana/Lens.
The text was updated successfully, but these errors were encountered: