Skip to content

Commit

Permalink
Wops! forgot one example
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalBlueberry committed Aug 25, 2024
1 parent 7192b58 commit 3458208
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/waterfall_bar_chart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func main() {
// Base

trace1 := &grob.Bar{
X: xData,
Y: []int{0, 430, 0, 570, 370, 370, 0},
X: types.DataArray(xData),
Y: types.DataArray([]int{0, 430, 0, 570, 370, 370, 0}),
Marker: &grob.BarMarker{
Color: types.ArrayOKValue(types.UseColor("rgba(1,1,1,0.0)")),
},
Expand All @@ -132,8 +132,8 @@ func main() {
// Revenue

trace2 := &grob.Bar{
X: xData,
Y: []int{430, 260, 690, 0, 0, 0, 0},
X: types.DataArray(xData),
Y: types.DataArray([]int{430, 260, 690, 0, 0, 0, 0}),
Marker: &grob.BarMarker{
Color: types.ArrayOKValue(types.UseColor("rgba(55,128,191,0.7)")),
Line: &grob.BarMarkerLine{
Expand All @@ -146,8 +146,8 @@ func main() {
// Cost

trace3 := &grob.Bar{
X: xData,
Y: []int{0, 0, 0, 120, 200, 320, 0},
X: types.DataArray(xData),
Y: types.DataArray([]int{0, 0, 0, 120, 200, 320, 0}),
Marker: &grob.BarMarker{
Color: types.ArrayOKValue(types.UseColor("rgba(219, 64, 82, 0.7)")),
Line: &grob.BarMarkerLine{
Expand All @@ -160,8 +160,8 @@ func main() {
// Profit

trace4 := &grob.Bar{
X: xData,
Y: []int{0, 0, 0, 0, 0, 0, 370},
X: types.DataArray(xData),
Y: types.DataArray([]int{0, 0, 0, 0, 0, 0, 370}),
Marker: &grob.BarMarker{
Color: types.ArrayOKValue(types.UseColor("rgba(50,171, 96, 0.7)")),
Line: &grob.BarMarkerLine{
Expand Down

0 comments on commit 3458208

Please sign in to comment.