basics of stacked bar.
This commit is contained in:
parent
020ec8f4a4
commit
a1fb284797
8 changed files with 272 additions and 25 deletions
12
pie_chart.go
12
pie_chart.go
|
|
@ -217,7 +217,7 @@ func (pc PieChart) stylePieChartValue(index int) Style {
|
|||
return Style{
|
||||
StrokeColor: ColorWhite,
|
||||
StrokeWidth: 5.0,
|
||||
FillColor: GetDefaultPieChartValueColor(index),
|
||||
FillColor: GetAlternateColor(index),
|
||||
FontSize: 24.0,
|
||||
FontColor: ColorWhite,
|
||||
Font: pc.GetFont(),
|
||||
|
|
@ -232,16 +232,6 @@ func (pc PieChart) styleDefaultsBackground() Style {
|
|||
}
|
||||
}
|
||||
|
||||
func (pc PieChart) styleDefaultsSeries(seriesIndex int) Style {
|
||||
strokeColor := GetDefaultSeriesStrokeColor(seriesIndex)
|
||||
return Style{
|
||||
StrokeColor: strokeColor,
|
||||
StrokeWidth: DefaultStrokeWidth,
|
||||
Font: pc.GetFont(),
|
||||
FontSize: DefaultFontSize,
|
||||
}
|
||||
}
|
||||
|
||||
func (pc PieChart) styleDefaultsElements() Style {
|
||||
return Style{
|
||||
Font: pc.GetFont(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue