Lookup table stores information about values and its associated colors. It provides efficient lookup of the color based on provided value as well as linear and step interpolation between colors.
The current example shows usage of lookup table with a Pie Chart.
Create a Pie Chart and attach lookup table to fill the slices with colors based on value.
// Create a new Pie Chartconst chart =lightningChart().Pie({ type: PieChartTypes.LabelsOnSides }).setAnimationsEnabled(true).setMultipleSliceExplosion(true).setLabelFormatter(SliceLabelFormatters.NamePlusValue).setSliceSorter(SliceSorters.None)// Attach lookup table..setLUT(lut).setLabelConnectorGap(10)