Histogram: move histogram from alpha to beta panel (#34246)

* add legend

* tooltip off-by-one

* units in x axis

* update function call

* remove tooltip
This commit is contained in:
Ryan McKinley
2021-05-19 17:13:17 -07:00
committed by GitHub
parent 348e76fc8e
commit 8147a65b5e
7 changed files with 63 additions and 26 deletions

View File

@ -93,7 +93,7 @@ export class UPlotAxisBuilder extends PlotConfigBuilder<AxisProps, Axis> {
} else if (isTime) {
config.values = formatTime;
} else if (formatValue) {
config.values = (u: uPlot, vals: any[]) => vals.map((v) => formatValue!(v));
config.values = (u: uPlot, vals: any[]) => vals.map(formatValue!);
}
// store timezone