Bars label for group


#1

Hello i have a bar chart in Chartfactor Studio and i want to change the label showed in the X axis for the group, but not in the tooltip, how can do this?, this is how my chart looks like:

The word club is ok in the tooltip, but, i need to change it just at the bottom of the chart.


#2

There is a way to do that using the axis config, look at the documentation for the axis label config , just switch to code and follow this example:

...
let myChart = myData.graph("Bars")
    .set("grid", grid)
    .set("xAxis", { label: "My Custom Label", labelGap: 25 }) // here you can set your label and some spacing for it
    .set("color", color)
    .execute();

#3

It was easy, Thanks for your help, only these configurations can I use? Or are there more like the ones that e-charts have?


#4

Actually yes, as you said, you can use xAxis and yAxis echarts configs, you just need something like this:

    .set("xAxis", { ... })
    .set("yAxis", { ... })

#5

Got it, thanks for your help, now i know what to do