CONTROL-BASE.vue#SERIES_BAR.ftl 963 字节
Newer Older
1 2 3
<#ibizinclude>
./CONTROL-COMMON.vue.ftl
</#ibizinclude>
4 5 6 7 8 9 10 11
<#-- 柱状图序列start -->
<#if item.render??>
${item.render.code}
<#else>
{
    id:'<#if item.getName()??>${item.getName()?lower_case}</#if>',
    name:'<#if item.getCaption()??>${item.getCaption()}</#if>',
    type:'bar',
12 13 14
    xAxisIndex:<@getXIndex item />,
    yAxisIndex:<@getYIndex item />,
    datasetIndex:<@getDataSetIndex item />,
15 16 17 18 19 20 21 22 23 24
    encode: {
        <#if item.getPSChartSeriesEncode()??><#assign chartSeriesEncode = item.getPSChartSeriesEncode() /></#if>
        x: [<#if chartSeriesEncode.getX()??><#list chartSeriesEncode.getX() as xValue>'${xValue?lower_case}'<#if xValue_has_next>,</#if></#list></#if>],      
        y: [<#if chartSeriesEncode.getY()??><#list chartSeriesEncode.getY() as yValue>'${yValue?lower_case}'<#if yValue_has_next>,</#if></#list></#if>]
    }<#if item.getBaseOptionJOString()??>,
    ${item.getBaseOptionJOString()}
    </#if>
}
</#if>
<#-- 柱状图序列end -->