mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 07:02:02 +08:00
Merge pull request #74 from SigNoz/update-err-chart-title
Change title in Error chart in ServiceOverview
This commit is contained in:
commit
3ef7b10f5b
@ -206,7 +206,7 @@ class ErrorRateChart extends React.Component<ErrorRateChartProps> {
|
|||||||
labels: ndata.map((s) => new Date(s.timestamp / 1000000)), // converting from nano second to mili second
|
labels: ndata.map((s) => new Date(s.timestamp / 1000000)), // converting from nano second to mili second
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
label: "",
|
label: "Error Percentage (%)",
|
||||||
data: ndata.map((s) => s.errorRate),
|
data: ndata.map((s) => s.errorRate),
|
||||||
pointRadius: 0.5,
|
pointRadius: 0.5,
|
||||||
borderColor: "rgba(227, 74, 51,1)", // Can also add transparency in border color
|
borderColor: "rgba(227, 74, 51,1)", // Can also add transparency in border color
|
||||||
@ -219,7 +219,7 @@ class ErrorRateChart extends React.Component<ErrorRateChartProps> {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{this.GraphTracePopUp()}
|
{this.GraphTracePopUp()}
|
||||||
<div style={{ textAlign: "center" }}>Errors per sec</div>
|
<div style={{ textAlign: "center" }}>Error Percentage (%)</div>
|
||||||
<ChartJSLine
|
<ChartJSLine
|
||||||
ref={this.chartRef}
|
ref={this.chartRef}
|
||||||
data={data_chartJS}
|
data={data_chartJS}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user