From 668dce9f5ca07751cf8a8a05a0215f0a63647f08 Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Thu, 31 Jan 2019 01:30:13 -0800 Subject: [PATCH] fix lint --- .../legacy-plugin-chart-histogram/Stories.jsx | 71 +++++++++++++++++-- 1 file changed, 64 insertions(+), 7 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-demo/storybook/stories/legacy-plugin-chart-histogram/Stories.jsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-demo/storybook/stories/legacy-plugin-chart-histogram/Stories.jsx index 02aab01f04..c76da27516 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-demo/storybook/stories/legacy-plugin-chart-histogram/Stories.jsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-demo/storybook/stories/legacy-plugin-chart-histogram/Stories.jsx @@ -9,19 +9,76 @@ export default [ chartType="histogram" chartProps={{ formData: { - colorScheme: "d3Category10", - xAxisLabel: "Score", - yAxisLabel: "Count", + colorScheme: 'd3Category10', globalOpacity: 1, linkLength: 25, normalized: false, + xAxisLabel: 'Score', + yAxisLabel: 'Count', }, height: 600, payload: { - data: [{ - "key": "Entrance exam", - "values": [0.87, 0.944, 1.0, 0.879, 0.69, 0.667, 0.794, 0.838, 0.875, 0.385, 0.968, 0.804, 1.0, 0.943, 0.96, 0.333, 0.5, 0.929, 0.863, 0.75, 0.957, 0.914, 1.0, 0.909, 0.742, 0.964, 0.25, 0.75, 0.5, 0.867, 0.909, 0.333, 0.867, 0.952, 0.857, 0.949, 0.857, 0.333, 0.8, 0.707, 0.833, 0.75, 0.88, 0.771, 1.0, 1.0, 0.769, 1.0, 0.769, 0.622, 0.909, 0.725, 0.951, 1.0] - }], + data: [ + { + key: 'Entrance exam', + values: [ + 0.87, + 0.944, + 1.0, + 0.879, + 0.69, + 0.667, + 0.794, + 0.838, + 0.875, + 0.385, + 0.968, + 0.804, + 1.0, + 0.943, + 0.96, + 0.333, + 0.5, + 0.929, + 0.863, + 0.75, + 0.957, + 0.914, + 1.0, + 0.909, + 0.742, + 0.964, + 0.25, + 0.75, + 0.5, + 0.867, + 0.909, + 0.333, + 0.867, + 0.952, + 0.857, + 0.949, + 0.857, + 0.333, + 0.8, + 0.707, + 0.833, + 0.75, + 0.88, + 0.771, + 1.0, + 1.0, + 0.769, + 1.0, + 0.769, + 0.622, + 0.909, + 0.725, + 0.951, + 1.0, + ], + }, + ], }, width: 600, }}