Merge pull request #74 from SigNoz/update-err-chart-title

Change title in Error chart in ServiceOverview
This commit is contained in:
Ankit Nayan 2021-05-02 20:13:19 +05:30 committed by GitHub
commit 3ef7b10f5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
datasets: [
{
label: "",
label: "Error Percentage (%)",
data: ndata.map((s) => s.errorRate),
pointRadius: 0.5,
borderColor: "rgba(227, 74, 51,1)", // Can also add transparency in border color
@ -219,7 +219,7 @@ class ErrorRateChart extends React.Component<ErrorRateChartProps> {
return (
<div>
{this.GraphTracePopUp()}
<div style={{ textAlign: "center" }}>Errors per sec</div>
<div style={{ textAlign: "center" }}>Error Percentage (%)</div>
<ChartJSLine
ref={this.chartRef}
data={data_chartJS}