How to rename axes in Azure Log Analytics Timechart Query

%3CLINGO-SUB%20id%3D%22lingo-sub-274628%22%20slang%3D%22en-US%22%3EHow%20to%20rename%20axes%20in%20Azure%20Log%20Analytics%20Timechart%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-274628%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20have%20the%20following%20query%20that%20I%20want%20to%20change%20the%20name%20of%20the%20axes.%20I%20tried%20the%20optional%20attributes%20of%20render%2C%20but%20it%20doesn't%20seem%20to%20recognize%20any%20of%20them.%20What%20am%20I%20missing%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EAzureStorage_CL%0A%7C%20where%20ResourceGroup%20%3D%3D%20%22rg-sdl-adw%22%0A%7C%20where%20PercentClientOtherError_d%20%26gt%3B%200%0A%7C%20summarize%20AV%20%3D%20any(PercentClientOtherError_d)%20by%20bin(TimeGenerated%2C%2030m)%20%7C%20%0Arender%20timechart%20with%20(ytitle%20%3D%20%22Y%20new%20title%22)%3C%2FPRE%3E%3CP%3ECurrent%20Results%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20896px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F57606iE29D8C287C4EF0DB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Rename%20LAW%20axes.PNG%22%20title%3D%22Rename%20LAW%20axes.PNG%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-274628%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EKusto%20KQL%20Ingestion%20PerformanceManagement%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281699%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20rename%20axes%20in%20Azure%20Log%20Analytics%20Timechart%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281699%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EIf%20I%20understand%20correctly%20you%20want%20to%20change%20the%20name%20of%20TimeGenerated%20below.%20That%20is%20just%20a%20column%20and%20you%20can%20do%20something%20like%3A%3C%2FP%3E%0A%3CPRE%3EAzureStorage_CL%0A%7C%20where%20ResourceGroup%20%3D%3D%20%22rg-sdl-adw%22%0A%7C%20where%20PercentClientOtherError_d%20%26gt%3B%200%0A%7C%20summarize%20AV%20%3D%20any(PercentClientOtherError_d)%20by%20bin(TimeGenerated%2C%2030m)%0A%7C%20project-rename%20NewName%20%3D%20TimeGenerated%0A%20%7C%20render%20timechart%20%3C%2FPRE%3E%0A%3CP%3ELet%20me%20know%20if%20this%20works%20for%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I have the following query that I want to change the name of the axes. I tried the optional attributes of render, but it doesn't seem to recognize any of them. What am I missing?

 

AzureStorage_CL
| where ResourceGroup == "rg-sdl-adw"
| where PercentClientOtherError_d > 0
| summarize AV = any(PercentClientOtherError_d) by bin(TimeGenerated, 30m) | 
render timechart with (ytitle = "Y new title")

Current Results:

Rename LAW axes.PNG 

1 Reply
Highlighted

Hi,

If I understand correctly you want to change the name of TimeGenerated below. That is just a column and you can do something like:

AzureStorage_CL
| where ResourceGroup == "rg-sdl-adw"
| where PercentClientOtherError_d > 0
| summarize AV = any(PercentClientOtherError_d) by bin(TimeGenerated, 30m)
| project-rename NewName = TimeGenerated
 | render timechart 

Let me know if this works for you.