option = {
tooltip: {
trigger: 'axis',
axisPointer: { type: 'cross' }
},
xAxis: {
name: 'Pledge',
nameLocation: 'middle',
nameTextStyle: {
padding: 12
},
min: 0,
max: 90000000,
data: [0, 10000, 100000, 1000000, 90000000],
type: 'log',
},
yAxis: {
name: 'Expected Return',
nameLocation: 'middle',
nameTextStyle: {
padding: 32
},
axisLabel: {
formatter: '{value}%'
},
type: 'value',
},
series: [
{
data: [0, 1, 2, 3, 4],
type: 'line',
color: '#43a047'
},
],
}
I have the above options being passed into my chart. The documentation shows that xAxis.min and xAxis.max should define the total range of my xAxis, but the label is stuck showing 1 through 10 only. I want it to be fixed from 0 to 90 million.
Additionally, it doesn't even seem to be plotting my first point at all, which should be at (0,0). I can't figure out what is wrong using the docs. Any help would be appreciated.