thicker chart line

This commit is contained in:
Lex Berezhny 2019-07-16 17:10:02 -04:00
parent b8d9d097d8
commit 16fb716872

View file

@ -40,11 +40,10 @@ class ServerLoadChartState extends State<ServerLoadChart> {
super.initState(); super.initState();
seriesData = [ seriesData = [
charts.Series<ServerLoadDataPoint, int>( charts.Series<ServerLoadDataPoint, int>(
id: 'Search Start', id: 'Search Cache',
colorFn: (_, __) => colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault.darker,
charts.MaterialPalette.deepOrange.shadeDefault.lighter,
domainFn: (ServerLoadDataPoint load, _) => load.tick, domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.search.started, measureFn: (ServerLoadDataPoint load, _) => load.search.cache_hit,
data: widget.server.serverLoadData, data: widget.server.serverLoadData,
), ),
charts.Series<ServerLoadDataPoint, int>( charts.Series<ServerLoadDataPoint, int>(
@ -53,27 +52,16 @@ class ServerLoadChartState extends State<ServerLoadChart> {
charts.MaterialPalette.deepOrange.shadeDefault.darker, charts.MaterialPalette.deepOrange.shadeDefault.darker,
domainFn: (ServerLoadDataPoint load, _) => load.tick, domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.search.finished, measureFn: (ServerLoadDataPoint load, _) => load.search.finished,
strokeWidthPxFn: (ServerLoadDataPoint load, _) => 5.0,
data: widget.server.serverLoadData, data: widget.server.serverLoadData,
), ),
charts.Series<ServerLoadDataPoint, int>( charts.Series<ServerLoadDataPoint, int>(
id: 'Search Cache', id: 'Search Start',
colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault.darker, colorFn: (_, __) =>
charts.MaterialPalette.deepOrange.shadeDefault.lighter,
domainFn: (ServerLoadDataPoint load, _) => load.tick, domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.search.cache_hit, measureFn: (ServerLoadDataPoint load, _) => load.search.started,
data: widget.server.serverLoadData, strokeWidthPxFn: (ServerLoadDataPoint load, _) => 1.0,
),
charts.Series<ServerLoadDataPoint, int>(
id: 'Resolve Start',
colorFn: (_, __) => charts.MaterialPalette.teal.shadeDefault.lighter,
domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.resolve.started,
data: widget.server.serverLoadData,
),
charts.Series<ServerLoadDataPoint, int>(
id: 'Resolve Finish',
colorFn: (_, __) => charts.MaterialPalette.teal.shadeDefault.darker,
domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.resolve.finished,
data: widget.server.serverLoadData, data: widget.server.serverLoadData,
), ),
charts.Series<ServerLoadDataPoint, int>( charts.Series<ServerLoadDataPoint, int>(
@ -83,6 +71,22 @@ class ServerLoadChartState extends State<ServerLoadChart> {
measureFn: (ServerLoadDataPoint load, _) => load.resolve.cache_hit, measureFn: (ServerLoadDataPoint load, _) => load.resolve.cache_hit,
data: widget.server.serverLoadData, data: widget.server.serverLoadData,
), ),
charts.Series<ServerLoadDataPoint, int>(
id: 'Resolve Finish',
colorFn: (_, __) => charts.MaterialPalette.teal.shadeDefault.darker,
domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.resolve.finished,
strokeWidthPxFn: (ServerLoadDataPoint load, _) => 5.0,
data: widget.server.serverLoadData,
),
charts.Series<ServerLoadDataPoint, int>(
id: 'Resolve Start',
colorFn: (_, __) => charts.MaterialPalette.teal.shadeDefault.lighter,
domainFn: (ServerLoadDataPoint load, _) => load.tick,
measureFn: (ServerLoadDataPoint load, _) => load.resolve.started,
strokeWidthPxFn: (ServerLoadDataPoint load, _) => 1.0,
data: widget.server.serverLoadData,
),
]; ];
} }