Skip to content

Commit

Permalink
tweak categorical color palette and y-label format (#4213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdchang authored Jul 22, 2024
1 parent 0c1957c commit a619d33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/hmi-client/src/services/charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { isEmpty } from 'lodash';

const VEGALITE_SCHEMA = 'https://vega.github.io/schema/vega-lite/v5.json';

export const CATEGORICAL_SCHEME = ['#5F9E3E', '#4375B0', '#8F69B9', '#D67DBF', '#E18547', '#D2C446', '#84594D'];
export const CATEGORICAL_SCHEME = ['#1B8073', '#6495E8', '#8F69B9', '#D67DBF', '#E18547', '#D2C446', '#84594D'];

export interface ForecastChartOptions {
legend: boolean;
Expand Down Expand Up @@ -62,7 +62,7 @@ export const createForecastChart = (
}
: null;

const xaxis = {
const xaxis: any = {
domainColor: axisColor,
tickColor: { value: axisColor },
labelColor: { value: labelColor },
Expand All @@ -73,6 +73,7 @@ export const createForecastChart = (
};
const yaxis = structuredClone(xaxis);
yaxis.title = options.yAxisTitle;
yaxis.format = '.3s';

const translationMap = options.translationMap;
let labelExpr = '';
Expand Down

0 comments on commit a619d33

Please sign in to comment.