Skip to content

Commit

Permalink
Update drv_charts.c
Browse files Browse the repository at this point in the history
Add a chart title
  • Loading branch information
ehorvat1 authored Oct 3, 2024
1 parent 47f76a4 commit c5d1229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/driver/drv_charts.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ void Chart_Display(http_request_t *request, chart_t *s) {
poststr(request, " beginAtZero: false");
poststr(request, " }");
}
poststr(request, " }");
poststr(request, " }, "); // EHorvat: Needs an additional "," to display chart title in next line
poststr(request, " plugins: { title: { display: true, color:'#099', text: '2 Stunden Trendkurve' } } "); // EHorvat: new line, display a chart titel
poststr(request, " }");
poststr(request, "});");
poststr(request, "Chart.defaults.color = '#099'; "); // Issue #1375, add a default color to improve readability (applies to: dataset names, axis ticks, color for axes title, (use color: '#099')
Expand Down

0 comments on commit c5d1229

Please sign in to comment.