czphappy commented on issue #18239:
URL: https://github.com/apache/echarts/issues/18239#issuecomment-1418408032
yData is usually a string by default. No matter whether I set the type of
the y axis to value or category, the first data is missing.
echarts.registerTransform(ecStat.transform.regression);
option = {
dataset: [
{
source: [
['aa', '4862'],
['bb', '5294'],
['vv', '5934'],
['ff', '7171'],
['dd', '8964'],
]
},
],
title: {
text: '1981 - 1998 gross domestic product GDP (trillion yuan)',
subtext: 'By ecStat.regression',
sublink: 'https://github.com/ecomfe/echarts-stat',
left: 'center'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross'
}
},
xAxis: {
type:'category',
splitLine: {
lineStyle: {
type: 'dashed'
}
}
},
yAxis: {
type:'value',
splitLine: {
lineStyle: {
type: 'dashed'
}
}
},
series: [
{
name: 'scatter',
type: 'scatter',
datasetIndex: 0
},
]
};

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]