func (c *Bar) XYReversal() *Bar {
	c.isXYReversal = true
	return c
}
XYReversal checks if X axis and Y axis are reversed.
package charts
import (
	"github.com/go-echarts/go-echarts/v2/opts"
	"github.com/go-echarts/go-echarts/v2/render"
	"github.com/go-echarts/go-echarts/v2/types"
)
type Bar struct {
	RectChart
	isXYReversal bool
}
func (Bar) Type() string { return types.ChartBar }
func NewBar() *Bar {
	c := &Bar{}
	c.initBaseConfiguration()
	c.Renderer = render.NewChartRender(c, c.Validate)
	c.hasXYAxis = true
	return c
}
func (c *Bar) EnablePolarType() *Bar {
	c.hasXYAxis = false
	c.hasPolar = true
	return c
}
func (c *Bar) SetXAxis(x interface{}) *Bar {
	c.xAxisData = x
	return c
}
func (c *Bar) AddSeries(name string, data []opts.BarData, options ...SeriesOpts) *Bar {
	series := SingleSeries{Name: name, Type: types.ChartBar, Data: data}
	series.configureSeriesOpts(options...)
	c.MultiSeries = append(c.MultiSeries, series)
	return c
}