{{ target: partial-marker }}
{{use: partial-mark-point( prefix=${prefix}, seriesType=${seriesType}, hasCoord=${hasCoord}, hasType=${hasType}, galleryEditorPath=${galleryEditorPath} )}}prefix {{use: partial-mark-line( prefix=${prefix}, seriesType=${seriesType}, hasCoord=${hasCoord}, hasType=${hasType}, galleryEditorPath=${galleryEditorPath} )}} {{use: partial-mark-area( prefix=${prefix}, seriesType=${seriesType}, hasCoord=${hasCoord}, hasType=${hasType}, galleryEditorPath=${galleryEditorPath} )}}
{{ target: marker-coord-explain }}
Notice: For axis with axis.type 'category'
:
number
, it represents index of axis.data.string
, it represents concrete value in axis.data. Please notice that in this case xAxis.data
must not be written as [number, number, ...], but can only be written [string, string, ...]. Otherwise it is not able to be located by markPoint / markLine.For example:
{ xAxis: { type: 'category', data: ['5', '6', '9', '13', '19', '33'] // As mentioned above, data should not be [5, 6, 9, 13, 19, 33] here. }, series: { type: 'line', data: [11, 22, 33, 44, 55, 66], markPoint: { // markLine is in the same way. data: [{ coord: [5, 33.4], // The number 5 represents xAxis.data[5], that is, '33'. // coord: ['5', 33.4] // The string '5' represents the '5' in xAxis.data. }] } } }