forked from LBRYCommunity/lbry-sdk
thicker chart line
This commit is contained in:
parent
b8d9d097d8
commit
16fb716872
1 changed files with 25 additions and 21 deletions
|
@ -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,
|
||||||
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue