I have a Kusto time chart that has Legend from the Query. I would like to remove the additional text from this Legend which is visible in the chart. Could you please tell me how I do it in KQL?
for example, from below I would like to remove the word ValueName and Value from the Legend and display just the Win_T3.
ValueName: Win_T3: Value -> Win_T3
Thanks in advance.
Regards, Neha
Well... not exactly, but you can do some trick by using \0
based aliases ( ['\0']
, ['\0\0']
etc.)
// Generate data sample. Not part of the solution
let t = materialize (range i from 1 to 1000 step 1 | extend dt = ago(7d*rand()), ValueName = strcat('Win_T', tostring(toint(rand()*5))));
// Solution Starts here
t
| make-series ['\0'] = count() on dt step 1d by ['\0\0'] = ValueName
| render timechart
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.