BigW Consortium Gitlab

pass all graph queries into createTimeSeries

parent b7273c10
......@@ -138,7 +138,7 @@
renderAxesPaths() {
this.timeSeries = createTimeSeries(
this.graphData.queries[0],
this.graphData.queries,
this.graphWidth,
this.graphHeight,
this.graphHeightOffset,
......
......@@ -11,7 +11,8 @@ const defaultColorPalette = {
const defaultColorOrder = ['blue', 'orange', 'red', 'green', 'purple'];
export default function createTimeSeries(queryData, graphWidth, graphHeight, graphHeightOffset) {
export default function createTimeSeries(queries, graphWidth, graphHeight, graphHeightOffset) {
const queryData = queries[0];
let usedColors = [];
function pickColor(name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment