CONTROL-BASE.vue#SERIES_FUNNEL.ftl 1.8 KB
Newer Older
KK's avatar
KK committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<#-- 折线图序列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:'funnel',
    datasetIndex:${item.getIndex()},
    <#compress><#if item.getLeft()?? && item.getLeft() != "">left:"${item.getLeft()}",</#if>
    <#if item.getTop()?? && item.getTop() != 0>top:"${item.getTop()}",</#if>
    <#if item.getBottom()?? && item.getBottom() != 0>bottom:"${item.getBottom()}",</#if>
    <#if item.getRight()?? && item.getRight() != "">right:"${item.getRight()}",</#if>
    <#if item.getWidth()?? && item.getWidth() != "">width:"${item.getWidth()}",</#if>
    <#if item.getHeight()?? && item.getHeight() != "">height:"${item.getHeight()}",</#if>
    <#if item.getMinValue()?? && item.getMinValue() != 0 >min:"${item.getMinValue()}",</#if>
    <#if item.getMaxValue()?? && item.getMaxValue() != 0 >max:"${item.getMaxSize()}",</#if>
    <#if item.getMinSize()?? && item.getMinSize() != "">minSize:"${item.getMinSize()}",</#if>
    <#if item.getMaxSize()?? && item.getMaxSize() != "">maxSize: "${item.getMaxSize()}",</#if>
    <#if item.getFunnelAlign()?? && item.getFunnelAlign() != "">funnelAlign:"${item.getFunnelAlign()}",</#if></#compress>
    seriesLayoutBy:"${item.getSeriesLayoutBy()}",
    encode:{
        <#if item.getPSChartSeriesEncode()??><#assign chartSeriesEncode = item.getPSChartSeriesEncode() /></#if>
        itemName:"<#if chartSeriesEncode.getCategory()??>${chartSeriesEncode.getCategory()?lower_case}<#else>${item.getCatalogField()?lower_case}</#if>",
        value:"<#if chartSeriesEncode.getValue()??>${chartSeriesEncode.getValue()?lower_case}<#else>${item.getValueField()?lower_case}</#if>"
    }<#if item.getBaseOptionJOString()??>,
    ${item.getBaseOptionJOString()}
    </#if>
}
</#if>
<#-- 折线图序列end -->