Hi! I was going through the baselines sample code to see how styling works. My understanding is that the key in the style object has to match the column name of your TimeSeries, i.e.:
const series = new TimeSeries({
name: "USD_vs_EURO",
columns: ["time", "value"], <-- this
points
});
const style = {
value: { <-- matches this
stroke: "#a02c2c",
opacity: 0.2
}
};
However, when I change both of these values to, let's say, "test" like so:
Hi! I was going through the baselines sample code to see how styling works. My understanding is that the key in the
style
object has to match the column name of yourTimeSeries
, i.e.:However, when I change both of these values to, let's say, "test" like so:
the plot stops working.
Am I missing anything? Do I have to change
value
totest
any other places? Thanks in advance!