Hello,
I found a way to have more than one task bars on a series: viewtopic.php?t=42468
But I'm looking for a way to do it without any space among them, it's possible to achieve this somehow?
Many thanks in advance.
Paulo Torres
Many thanks for the help, I'll try to implement what you have suggested.jakub.j wrote: ↑Thu Apr 13, 2023 7:23 amThanks for contacting us with your question!
If you want to get rid of the space between bars, you can set series.pointPadding to 0.
Demo: https://jsfiddle.net/BlackLabel/yrqb1o7f/
As you can see on the demo above, there is a white border between the bars, to avoid it, you can update every point's border with it's own color and the gap will not be visible anymore.
Demo: https://jsfiddle.net/BlackLabel/z4Lc5bk8/
Feel free to ask any further questions!
Best regards
Jakub
Hello Jakub,
Hello Jakub,
Code: Select all
Highcharts.ganttChart($parameters.ChartContainerId, {
title: {
text: "Project Paulo"
},
navigator: {
enabled: false,
},
chart: {
//type: 'xrange',
type: 'gantt',
height: 400,
},
plotOptions: {
series: {
grouping: true
}
},
yAxis: {
type: 'category',
categories: ['Sporting', 'Juventus'],
},
series: [{
data: [{
name: "test0",
start: 1627862400000,
end: 1631577600000,
completed: 0.5,
y: 0,
}, {
name: "test1",
start: 1626134400000,
end: 1630022400000,
completed: 0.3,
y: 1,
}]
}, {
data: [{
name: "test2",
start: 1625702400000,
end: 1629158400000,
completed: 0.2,
y: 0
}, {
name: "test3",
start: 1625702400000,
end: 1629158400000,
completed: 0.8,
y: 1
}]
}]
});
I didn't explain well in the first comment, thanks a lot for your help, this looks goodjakub.j wrote: ↑Fri Apr 21, 2023 10:44 amHey,
Okey, now I get your point.
The bars get really thin, because of pointPadding and groupPadding.
If you set those properties, the bars will get thicker because the spacing between them will be smaller, see demo:
Demo: https://jsfiddle.net/BlackLabel/92Lht0en/
Let me know if that helped!
Best regards
Jakub
Code: Select all
yAxis: {
type: 'category',
categories: ['Sporting', 'Juventus'],
},
Hello Jakub,jakub.j wrote: ↑Fri Apr 21, 2023 7:08 pmHey,
I'm glad it helped!
If you want custom names for the rows, you need to use this code, if we have one point in a row (group), the name can be the one from the point (bar) but if you have more than one point in one row, it's better to use categories.
Let me know if you have any further questions!
Best regards
Jakub
Hi Jakub,jakub.j wrote: ↑Thu Apr 27, 2023 7:23 amHey!
You can have drilldown functionality in x-range chart. Simply import drilldown module in HTML and then on the parent series set a property drilldown to an id of a child series in chart.drilldown.series and you are good to go!
Demo: https://jsfiddle.net/BlackLabel/v476ydju/
I hope you will find it useful
Best regards
Jakub
Hi Jakub,jakub.j wrote: ↑Thu Apr 27, 2023 9:26 amYou're welcome!
You can nest the drilldown as far as you want, now the blue series drills down into two new series and then the red series also has drilldown to next set of series starting with an orange one. Just simply set drilldown to id of any new series you want.
Demo: https://jsfiddle.net/BlackLabel/ukh24zgs/
Hope this helps!
Best regards
Jakub