How to put two histograms in one plot?

I would like to put two histogram with similar topic in one plot for comparison. But I could not find how to do it. May I know how to do that?

Thanks in advance.

Hello Vernal,

You might find the thread below useful! Depending on your specific use case, Vega (still experimental) might be a good fit.

Regards,
Aaron

Hi Aaron,

I tried Vega before. But even for one histogram, it does not work at all. I have tried about one week, but it still cannot work, which made me really frustrated. Could you help take a look what is wrong with my code? Or maybe this is caused by bugs in Kibana, not in my code?Thanks a lot!

{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": {
"%context%": "true",
"index": "ge3_core_stats*",
"body":{
"size": 10000,
"_source":["avg_volt"]
}
}
"format": {"property":"hits.hits"}
},
"mark": "bar",
"encoding": {
"x": {
"bin": "binned",
"field": "_source.avg_volt",
"type": "quantitative"
},
"y": {
"aggregate": "count",
"type": "quantitative"
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.