Skip to content

Commit

Permalink
test(demo): remove custom stroke from demo
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdickerson committed Feb 4, 2020
1 parent 5e0413f commit 2f1fe55
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions packages/core/demo/chart-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const {
donutData,
// Line
lineTimeSeriesOptions,
lineTimeSeriesWithCustomStroke,
lineTimeSeriesData,
lineData,
lineOptions,
Expand Down Expand Up @@ -119,11 +118,6 @@ export const chartTypes = [
options: lineTimeSeriesOptions,
data: lineTimeSeriesData
},
{
id: "line-time-series-customstroke",
options: lineTimeSeriesWithCustomStroke,
data: lineTimeSeriesData
},
{
id: "line",
options: lineOptions,
Expand Down
14 changes: 0 additions & 14 deletions packages/core/demo/demo-data/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,6 @@ export const lineTimeSeriesOptions = {
curve: "curveMonotoneX"
};

export const lineTimeSeriesWithCustomStroke = {
...lineTimeSeriesOptions,
title: "Line (custom stroke, fill colors)",
getStrokeColor: (datasetLabel, label, data, originalStrokeColor) => {
return data && data.value > 60000 ? "#FF0000" : originalStrokeColor;
},
getFillColor: (datasetLabel, label, data, originalFillColor) => {
return data && data.value > 60000 ? "#FF0000" : originalFillColor;
},
getIsFilled: (datasetLabel, label, data, originalIsFilled) => {
return data && data.value > 60000 ? true : originalIsFilled;
}
};

export const lineData = {
labels: ["Qty", "More", "Sold", "Restocking", "Misc"],
datasets: [
Expand Down
1 change: 0 additions & 1 deletion packages/core/demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ chartTypes.forEach(type => {
break;
case "line":
case "line-time-series":
case "line-time-series-customstroke":
case "line-step":
case "line-step-time-series":
classToInitialize = LineChart;
Expand Down

0 comments on commit 2f1fe55

Please sign in to comment.