First gridline does not respect custom color
See original GitHub issueFirst gridline does not respect the color I set in ChartOptions.
Gridline-related extract from ChartOptions:
{
responsive: true,
maintainAspectRatio: false,
layout: { padding: { top: 10, bottom: 10 } },
legend: { display: false },
scales: {
xAxes: [
{
display: true,
type: 'time',
time: {
unit: this.shortPeriod ? 'day' : 'week',
displayFormats: {
day: 'ddd',
week: '[W] W'
},
isoWeekday: true,
display: false,
tooltipFormat: 'dddd DD. MMM'
},
ticks: {
min: this.startDate.toJSDate(),
max: this.endDate.toJSDate(),
labelOffset: this.shortPeriod ? 15 : 20,
fontColor: 'rgba(255, 255, 255, 0.5)'
},
scaleLabel: {
display: false
},
gridLines: {
display: true,
color: 'red'
}
}
],
yAxes: [
{
id: 'LOAD',
scaleLabel: {
display: false
},
position: 'left',
ticks: {
min: 0,
max: 2500,
display: false
},
gridLines: {
display: false
}
},
{
id: 'REST',
scaleLabel: {
display: false
},
position: 'right',
ticks: {
// add a bit of top/bottom padding for min/max values
min: 0.8,
max: 5.2,
display: false
},
gridLines: {
display: false
}
},
gridLines: {
display: true,
tickMarkLength: 0,
lineWidth: 1,
borderDash: [5],
color: ['transparent', 'rgba(255, 255, 255, 0.5)'],
z: 10
}
}
]
},
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Change the color of gridlines in a worksheet - Microsoft Support
Select the worksheets for which you want to change the gridline color. Click File > Excel > Options. In the Advanced category, under...
Read more >JFreeChart gridline? paint set [closed] - Stack Overflow
I have this chart and I want the line at 0 to be WHITE instead of BLACK, but I'm not sure which property...
Read more >Grid lines obscured by fill color - Google Groups
To do so, select the cells, and then click arrow next to Fill Color Button image (Home tab, Font group).
Read more >Prevent crowded grid lines in the Chart - Telerik UI for Blazor
Description. I have a Chart that has to visualize a big volume of data. This makes the grid lines clustered and the Chart...
Read more >Use grids in Adobe InDesign
Specify a document grid color by choosing a color in the Color menu. You can also choose Custom in the Color menu. To...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@etimberg That works, many thanks!
No, I’ve never really used Typescript. Might be a cool v3 feature to migrate the library to it or put the types in the main repo 😉 But it’s not something I’d have time to spend time on