I’m using a self-hosted Grafana v8.4.3 running on Windows 10.
I’m trying to build a Pareto chart without using Plotly plugin (combine a bar and line chart)
To start I’ve created 2 different datasources, one for the bar information (number of defects grouped by defects type) and another for the line chart (percentage of the current bar represent + the sum of all previous percentages).
Being a first time user of Grafana, I though this was something easy to do, select one type of chart for each datasource and then combine using a common value (on this case, the type of defects)
I created the 1st datasource, set Format as to Table and set the chart as a bar chart.
Everything look good:
Then I added the 2nd datasource and an error appears:
Log:
logger=token t=2022-05-04T14:21:57.35+0100 lvl=dbug msg=FeatureEnabled feature=dspermissions.enforcement enabled=false licenseStatus=NotFound hasLicense=false hasValidLicense=false products=“unsupported value type”
logger=datasources t=2022-05-04T14:21:57.35+0100 lvl=dbug msg=“Querying for data source via SQL store” id=45 orgId=1
logger=query_data t=2022-05-04T14:21:57.35+0100 lvl=dbug msg=“Processing metrics query” query=“unsupported value type”
logger=query_data t=2022-05-04T14:21:57.35+0100 lvl=dbug msg=“Processing metrics query” query=“unsupported value type”
logger=context t=2022-05-04T14:21:57.65+0100 lvl=info msg=“Request Completed” method=POST path=/api/ds/query status=200 remote_addr=[::1] time_ms=302 size=1701 referer=“http://grafana.staged-by-discourse.com/d/56J7nd_7k/building-pareto?orgId=1&from=now-24h&to=now&editPanel=4&tab=query”
So, my questions are:
- Is it possible to achieve this kind of combined charts without using plotly? How? (all the example that I’m able to find are using time series, I want the x axis to be the defect name, not a timeline)
- How can I understand the source of the error (unsupported value type)
Results of both queries are 7 rows:
17590 contamination
10175 stress
8881 eletric damage
7946 scratched
6530 short
5516 burn
1166 water damage
and
30.421200 | contamination |
---|---|
48.036400 | stress |
63.391500 | eletric damage |
77.110800 | scratched |
88.470100 | short |
97.978600 | burn |
99.999600 | water damage |
Thanks for all the help,
LP