Dashboards elasticharts mixedlinebar - kwantu/platformconfiguration GitHub Wiki

Mix line chart

Layout

image

Config

 "elasticChart": {
            "sdoSetId": "performanceQuarterlyDashboard:1",
            "uiView": "",
            "canEdit": "",
            "field": "percentTargetsMet,percentTargetsNotMet",
            "chartType": "mix-line-bar",
            "Label": "met,not met",
            "GroupBy": "nodeName",
            "Xaxis": "nodeName",
            "Yaxis": "percentTargetsMet",
            "Y1axis": "percentTargetsNotMet",
            "template": "{\"tooltip\":{\"trigger\":\"axis\",\"axisPointer\":{\"type\":\"cross\",\"crossStyle\":{\"color\":\"#999\"}}},\"toolbox\":{\"feature\":{\"magicType\":{\"show\":true,\"type\":[\"line\",\"bar\"]},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"legend\":{\"data\":[\"target\",\"achieved\"]},\"xAxis\":[{\"type\":\"category\",\"data\":[],\"axisPointer\":{\"type\":\"shadow\"}}],\"yAxis\":[{\"type\":\"value\",\"name\":\"target\",\"min\":0,\"max\":1000,\"axisLabel\":{\"formatter\":\"{value}\"}},{\"type\":\"value\",\"name\":\"achieved\",\"min\":0,\"max\":1000,\"axisLabel\":{\"formatter\":\"{value}\"}}],\"series\":[{\"barMaxWidth\":40,\"name\":\"target\",\"type\":\"bar\",\"data\":[]},{\"name\":\"achieved\",\"barMaxWidth\":40,\"type\":\"line\",\"yAxisIndex\":1,\"data\":[]}]}",
            "chart": "",
            "workflowStatus": "",
            "functionField": "sum",
            "acrossCommunity": false,
            "XaxisGrouping": false,
            "seriesField": "",
            "contextFilter": "",
            "GroupBy2": "_subprofileId",
            "GroupBy3": "",
            "GroupBy4": "",
            "GroupBy5": "",
            "filterMapping": []
          },

Rendered chart

image