[go: up one dir, main page]

Time-Value order in TimeSerie

I propose to change in types.ts

export type TimeSerie = {
  target: string,
  datapoints: [number, number][],
  alias?: string,
  visible?: boolean,
  color?: string,
  yOrientation?: yAxisOrientation,
};

https://gitlab.com/chartwerk/core/-/blob/main/src/types.ts#L5

timestamp to be first. Also would be nice to add alias type to the array to say where we expect time, something like

type TimeStamp = number;

...
datapoints: [TimeStamp, number][]
...