SOLVED

Render operator ignoring ymin and ymax values

%3CLINGO-SUB%20id%3D%22lingo-sub-355540%22%20slang%3D%22en-US%22%3ERender%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-355540%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20having%20a%20problem%20with%20the%20analytics%20tools%2C%20specifically%20the%20Analytics%20inside%20Application%20Insights%20as%20well%20as%20the%20Logs%20analytics%20inside%20a%20Log%20Analytics%20workspace.%20Regardless%20of%20query%20or%20chart%20type%2C%20when%20I%20specify%20with(ymin%3Dx%2C%20ymax%3Dy)%20values%20to%20the%20render%20function%20those%20values%20are%20ignored.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20query%3A%3C%2FP%3E%3CPRE%3EHeartbeat%0A%7C%20summarize%20heartbeatPerHour%20%3D%20count()%20by%20bin_at(TimeGenerated%2C%201m%2C%20ago(30d))%2C%20Computer%0A%7C%20extend%20availablePerHour%20%3D%20iff(heartbeatPerHour%20%26gt%3B%200%2C%20true%2C%20false)%0A%7C%20summarize%20totalAvailableHours%20%3D%20countif(availablePerHour%20%3D%3D%20true)%20by%20Computer%20%0A%7C%20extend%20availabilityRate%20%3D%20totalAvailableHours*100.0%2F(1440%20*%2030)%0A%7C%20extend%20MeetsSLA%20%3D%20availabilityRate%20%26gt%3B%2099.9%0A%7C%20project%20Computer%2C%20availabilityRate%20%0A%7C%20render%20barchart%20with(title%3D%22Last%2030%20Days%20Availability%20(DEMO)%22%2C%20ymin%3D0%2C%20ymax%3D100)%3C%2FPRE%3E%3CP%3EIn%20this%20particular%20case%20the%20expeced%20values%20are%20between%202-3%25%20uptime%20because%20the%20system's%20only%20been%20logging%20for%20a%20day%20or%20so%20yet%20the%20query%20covers%20a%20month.%20The%20resulting%20graph%20has%20a%20range%20of%200-3%20instead%20of%20the%20requested%200-100.%20There%20doesn't%20seem%20to%20be%20an%20%22automatic%20range%22%20option%20that%20I%20need%20to%20turn%20off%3B%20by%20all%20accounts%20including%20MS's%20documentation%20this%20should%20just%20work%2C%20yet%20it%20isn't.%20Result%20from%20example%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Fi.stack.imgur.com%2FTOuKT.png%22%20alt%3D%22https%3A%2F%2Fi.stack.imgur.com%2FTOuKT.png%22%20border%3D%220%22%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20this%20with%20queries%20from%20App%20Insights%20as%20well%20as%20a%20Log%20Analytics%20workspace%2C%20and%20across%20multiple%20browsers%20(FireFox%2C%20Chrome%2C%20IE%2C%20Edge).%26nbsp%3B%20I%20know%20the%20render%20operator's%20documentation%20clearly%20states%20that%20some%20user%20agents%20might%20not%20support%20certain%20features%2C%20however%20this%20looks%20more%20like%20no%20user%20agents%20support%20this%20feature.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20something%20I'm%20doing%20wrong%2C%20or%20need%20to%20do%20differently%20in%20order%20to%20make%20this%20work%3F%26nbsp%3B%20Is%20this%20something%20that%20isn't%20currently%20implemented%3F%26nbsp%3B%20Open%20to%20any%20advice%20or%20suggestions%2C%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-355540%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApplication%20Insights%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-390811%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-390811%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3EThanks%20for%20getting%20back%20to%20me%3B%20even%20this%20demo%20doesn't%20work%20on%20my%20data%20set-%20I%20get%20a%20graph%20from%2090%20to%20112%20across%20browsers.%26nbsp%3B%20I%20suspect%20that%20the%20values%20are%20simply%20ignored%3B%20I%20can%20create%20a%20graph%20that%20looks%20like%20the%20demo%2C%20but%20only%20when%20I%20include%20a%20value%20near%200.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-358390%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-358390%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20the%20example%20from%20the%20portal%20with%20a%20project-away%20and%20your%20chart%20syntax%20pasted%20in%20at%20the%20end%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%2F%2F%20Calculate%20availability%20rate%20for%20connected%20computers%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EHeartbeat%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%2F%2F%20bin_at%20is%20used%20to%20set%20the%20time%20grain%20to%201%20hour%2C%20starting%20exactly%2024%20hours%20ago%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Esummarize%3C%2FSPAN%3E%3CSPAN%3E%20heartbeatPerHour%20%3D%20%3C%2FSPAN%3E%3CSPAN%3Ecount%3C%2FSPAN%3E%3CSPAN%3E()%20%3C%2FSPAN%3E%3CSPAN%3Eby%3C%2FSPAN%3E%3CSPAN%3E%20bin_at(TimeGenerated%2C%20%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%3CSPAN%3Eh%2C%20ago(%3C%2FSPAN%3E%3CSPAN%3E24%3C%2FSPAN%3E%3CSPAN%3Eh))%2C%20Computer%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Eextend%3C%2FSPAN%3E%3CSPAN%3E%20availablePerHour%20%3D%20iff(heartbeatPerHour%20%26gt%3B%20%3C%2FSPAN%3E%3CSPAN%3E0%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSPAN%3Etrue%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSPAN%3Efalse%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Esummarize%3C%2FSPAN%3E%3CSPAN%3E%20totalAvailableHours%20%3D%20countif(availablePerHour%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3Etrue%3C%2FSPAN%3E%3CSPAN%3E)%20%3C%2FSPAN%3E%3CSPAN%3Eby%3C%2FSPAN%3E%3CSPAN%3E%20Computer%3C%2FSPAN%3E%20%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Eextend%3C%2FSPAN%3E%3CSPAN%3E%20availabilityRate%20%3D%20totalAvailableHours*%3C%2FSPAN%3E%3CSPAN%3E100.0%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3E24%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Eproject-away%3C%2FSPAN%3E%3CSPAN%3E%20totalAvailableHours%3C%2FSPAN%3E%20%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Erender%3C%2FSPAN%3E%3CSPAN%3E%20barchart%20with(title%3D%3C%2FSPAN%3E%3CSPAN%3E%22Last%2030%20Days%20Availability%20(DEMO)%22%3C%2FSPAN%3E%3CSPAN%3E%2C%20ymin%3D%3C%2FSPAN%3E%3CSPAN%3E0%3C%2FSPAN%3E%3CSPAN%3E%2C%20ymax%3D%3C%2FSPAN%3E%3CSPAN%3E100%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84696i149CAA71BFDDEB6D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Untitled.jpg%22%20title%3D%22Untitled.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-881807%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-881807%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289840%22%20target%3D%22_blank%22%3E%40the_irk%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20similar%20issue%20trying%20to%20graph%20free%20space%20on%20the%20Logical%20drives%20of%20all%20my%20Azure%20VMs%2C%20my%20data%20set%20luckily%20has%20the%20right%20values%20to%20push%20the%20ymax%20to%20100%20on%20it's%20own%2C%20but%20it's%20ignoring%20the%20ymin%20%3D%200%20(or%20any%20ymax%20other%20than%20100)%20that%20I'm%20trying%20to%20define.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EPerf%0A%7C%20where%20TimeGenerated%20%26gt%3B%20ago(60d)%0A%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20%7C%20where%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%0A%7C%20project%20CounterPath%2C%20TimeGenerated%2C%20InstanceName%2C%20CounterName%2C%20CounterValue%0A%7C%20summarize%20max(CounterValue)%20by%20bin(TimeGenerated%2C%2012h)%2C%20CounterPath%0A%7C%20render%20timechart%20with%20(title%20%3D%22Virtual%20Machine%20Disk%20Usage%22%2C%20ymin%3D0%2C%20ymax%3D100)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134070i7DD081B6108A3B2F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Annotation%202019-09-30%20170320.png%22%20title%3D%22Annotation%202019-09-30%20170320.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20appreciate%20if%20anyone%20as%20any%20clues%2C%20tips%20or%20tricks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-882039%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-882039%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F417171%22%20target%3D%22_blank%22%3E%40chrisbutler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3Erender%3C%2FSTRONG%3E%20is%20slightly%20different%20in%20Log%20Analytics%20to%20Azure%20Data%20Explorer%20(the%20docs%20are%20merged).%26nbsp%3B%20You%20need%20to%20use%20range%20or%20make-series%20-%20would%20this%20example%20work%20for%20you%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EPerf%0A%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20%7C%20where%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%0A%7C%20make-series%20%20%20%20pctDiskFreeSpace%20%3D%20max(CounterValue)%20%20default%3D0%20on%20TimeGenerated%20%20in%20range(ago(60d)%2C%20now()%2C%2012h)%20by%20Computer%0A%7C%20render%20timechart%20title%20%3D%22Virtual%20Machine%20Disk%20Usage%22%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-883424%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-883424%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20certainly%20sorts%20the%20Y%20axis%20range%20issue%2C%20thanks!%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20I've%20lost%20using%20your%20code%20as%20is%20however%20is%20the%20spilt%20per%20instance%20name%20(machine%2Fdisk)%2C%20it's%20now%20only%20showing%20one%20series%20per%20machine%2C%20rather%20than%20per%20disk.%20Pretty%20sure%20I%20can%20fix%20this%20with%20a%20bit%20of%20fooling%20around%2C%20I'll%20play%20with%20it%20through%20my%20day%20and%20let%20you%20know%20how%20I%20get%20on!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-885509%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-885509%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F417171%22%20target%3D%22_blank%22%3E%40chrisbutler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIts%20a%20busy%20chart%20but...this%20maybe%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EPerf%0A%7C%20where%20TimeGenerated%20%26gt%3B%20ago(60d)%0A%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20%7C%20where%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%0A%7C%20where%20InstanceName%20has%20%22%3A%22%20%20%2F%2F%20just%20drive%20letters%0A%7C%20make-series%20pctDiskFreeSpace%20%3D%20max(CounterValue)%20%20default%3D0%20on%20TimeGenerated%20%20in%20range(ago(60d)%2C%20now()%2C%2012h)%20by%20CounterPath%0A%7C%20render%20timechart%20title%20%3D%22Virtual%20Machine%20Disk%20Usage%22%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-887199%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887199%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%20Clive%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20it%20is%20a%20busy%20chart%2C%20I%20have%20extra%20WHERE%20statements%20similar%20to%20yours%20in%20the%20Query%20I'm%20actually%20using%20that%20filter%20our%20a%20bunch%20of%20the%20disks%20that%20I'm%20not%20particularly%20interested%20in%20(Azure%20VM%20BEK%20and%20Temp%20storage%20drives%20especially)%20however%20I've%20left%20those%20out%20of%20my%20post%20as%20it%20identifies%20some%20of%20the%20machine%20names%20(and%20therefore%20could%20be%20extrapolated%20to%20the%20DNS%20name%20with%20enough%20trial%20and%20error).%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20issue%20with%20just%20using%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%7C%20where%20InstanceName%20has%20%22%3A%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E.......and%20specifying%20specific%20drive%20letters%20is%20that%20the%20Azure%20BEK%20encryption%20drives%20don't%20seem%20to%20always%20end%20up%20with%20the%20same%20drive%20letter%2C%20so%20my%20WHERE%20statement%20has%20to%20be%20a%20bit%20more%20complex%20to%20pick%20specific%20drives%20from%20certain%20machines.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBack%20on%20topic%2C%20the%20make-series%20statement%20that%20you%20suggested%20yesterday%20has%20worked%20perfectly%20to%20get%20the%20y%20axis%20to%20go%20from%200%20-%20100%2C%20it%20also%20allowed%20me%20to%20give%20the%20Y%20axis%20a%20custom%20name%20label%20which%20I%20hadn't%20yet%20worked%20out%20how%20to%20do.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20also%20used%20this%20extend%20and%20strcat()%20statement%20to%20create%20a%20new%20series%20for%20the%20X%20axis%20with%20a%20better%20name%20and%20data%20that%20reads%20easier%20in%20the%20legend%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%7C%20extend%20DiskName%20%3D%20strcat(Computer%2C%22%20(%22%2C%20InstanceName%2C%22)%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20might%20have%20noticed%20I%20then%20used%20the%20new%20series%20in%20my%20version%20of%20your%20make-series%20to%20spilt%20the%20X%20series%20up%20the%20way%20I%20wanted.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAfter%20all%20that%2C%20I've%20ended%20up%20with%20something%20very%20similar%20to%20this%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EPerf%0A%7C%20where%20TimeGenerated%20%26gt%3B%20ago(60d)%0A%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20%7C%20where%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%0A%7C%20where%20InstanceName%20%3D%3D%20%22C%3A%22%20or%20InstanceName%20%3D%3D%20%22F%3A%22%20or%20InstanceName%20%3D%3D%20%22E%3A%22%0A%7C%20extend%20DiskName%20%3D%20strcat(Computer%2C%22%20(%22%2C%20InstanceName%2C%22)%22)%0A%7C%20make-series%20DiskFreeSpace%20%3D%20max(CounterValue)%20%20default%3D0%20on%20TimeGenerated%20%20in%20range(ago(60d)%2C%20now()%2C%2012h)%20by%20DiskName%0A%7C%20render%20timechart%20title%20%3D%22Virtual%20Machine%20Disk%20Usage%22%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20results%20in%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20884px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134986i1C7050AF83ABE644%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Annotation%202019-10-02%20085027.png%22%20title%3D%22Annotation%202019-10-02%20085027.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20data%20is%20quite%20spiky%20as%20the%20VMs%20are%20all%20relatively%20new%2C%20so%20the%20series%20will%20smooth%20out%20over%20a%20couple%20of%20months%2C%20and%20I%20still%20have%20some%20work%20to%20do%20to%20try%20and%20get%20it%20to%20display%20in%20local%20time%20(%2B12%20GMT%20NZST)%2C%20move%20the%20legend%20to%20the%20bottom%20(more%20like%20the%20built%20in%20Azure%20charts)%20and%20remove%20the%20dots%20off%20the%20series%20lines.......%20but%20fundamentally%2C%20this%20gives%20me%20what%20I%20need.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20very%20much%20for%20you%20help!%20I'm%20learning%20a%20lot%20as%20I%20go!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891373%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891373%22%20slang%3D%22en-US%22%3EGreat%20feed%20back%20Chris%2C%20thanks%20for%20sharing%20the%20example%20to%20help%20others!%20Best%20wishes%20Clive%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1379580%22%20slang%3D%22en-US%22%3ERe%3A%20Render%20operator%20ignoring%20ymin%20and%20ymax%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1379580%22%20slang%3D%22en-US%22%3EHi%20all%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20is%20now%20a%20working%20solution%20and%20more%20options%20in%20render%20are%20supported%2C%20see%20my%20example%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcloudblogs.microsoft.com%2Findustry-blog%2Fen-gb%2Fcross-industry%2F2020%2F05%2F11%2Flog-analytics-improved-rendering-of-charts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcloudblogs.microsoft.com%2Findustry-blog%2Fen-gb%2Fcross-industry%2F2020%2F05%2F11%2Flog-analytics-improved-rendering-of-charts%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

I'm having a problem with the analytics tools, specifically the Analytics inside Application Insights as well as the Logs analytics inside a Log Analytics workspace. Regardless of query or chart type, when I specify with(ymin=x, ymax=y) values to the render function those values are ignored.

 

Example query:

Heartbeat
| summarize heartbeatPerHour = count() by bin_at(TimeGenerated, 1m, ago(30d)), Computer
| extend availablePerHour = iff(heartbeatPerHour > 0, true, false)
| summarize totalAvailableHours = countif(availablePerHour == true) by Computer 
| extend availabilityRate = totalAvailableHours*100.0/(1440 * 30)
| extend MeetsSLA = availabilityRate > 99.9
| project Computer, availabilityRate 
| render barchart with(title="Last 30 Days Availability (DEMO)", ymin=0, ymax=100)

In this particular case the expeced values are between 2-3% uptime because the system's only been logging for a day or so yet the query covers a month. The resulting graph has a range of 0-3 instead of the requested 0-100. There doesn't seem to be an "automatic range" option that I need to turn off; by all accounts including MS's documentation this should just work, yet it isn't. Result from example:

 

https://i.stack.imgur.com/TOuKT.png

 

I've tried this with queries from App Insights as well as a Log Analytics workspace, and across multiple browsers (FireFox, Chrome, IE, Edge).  I know the render operator's documentation clearly states that some user agents might not support certain features, however this looks more like no user agents support this feature.

 

Is there something I'm doing wrong, or need to do differently in order to make this work?  Is this something that isn't currently implemented?  Open to any advice or suggestions, thanks!

9 Replies

This is the example from the portal with a project-away and your chart syntax pasted in at the end

// Calculate availability rate for connected computers
Heartbeat
// bin_at is used to set the time grain to 1 hour, starting exactly 24 hours ago
| summarize heartbeatPerHour = count() by bin_at(TimeGenerated, 1h, ago(24h)), Computer
| extend availablePerHour = iff(heartbeatPerHour > 0, true, false)
| summarize totalAvailableHours = countif(availablePerHour == true) by Computer
| extend availabilityRate = totalAvailableHours*100.0/24
| project-away totalAvailableHours
| render barchart with(title="Last 30 Days Availability (DEMO)", ymin=0, ymax=100)
 
Untitled.jpg
 

@Clive WatsonThanks for getting back to me; even this demo doesn't work on my data set- I get a graph from 90 to 112 across browsers.  I suspect that the values are simply ignored; I can create a graph that looks like the demo, but only when I include a value near 0.

@the_irk

 

I have a similar issue trying to graph free space on the Logical drives of all my Azure VMs, my data set luckily has the right values to push the ymax to 100 on it's own, but it's ignoring the ymin = 0 (or any ymax other than 100) that I'm trying to define.

 

Perf
| where TimeGenerated > ago(60d)
| where ObjectName == "LogicalDisk" | where CounterName == "% Free Space"
| project CounterPath, TimeGenerated, InstanceName, CounterName, CounterValue
| summarize max(CounterValue) by bin(TimeGenerated, 12h), CounterPath
| render timechart with (title ="Virtual Machine Disk Usage", ymin=0, ymax=100)

 

 

Annotation 2019-09-30 170320.png

 

Would appreciate if anyone as any clues, tips or tricks!

@chrisbutler 

 

render is slightly different in Log Analytics to Azure Data Explorer (the docs are merged).  You need to use range or make-series - would this example work for you?

 

Perf
| where ObjectName == "LogicalDisk" | where CounterName == "% Free Space"
| make-series    pctDiskFreeSpace = max(CounterValue)  default=0 on TimeGenerated  in range(ago(60d), now(), 12h) by Computer
| render timechart title ="Virtual Machine Disk Usage" 

 

Hey @Clive Watson ,

 

That certainly sorts the Y axis range issue, thanks!

What I've lost using your code as is however is the spilt per instance name (machine/disk), it's now only showing one series per machine, rather than per disk. Pretty sure I can fix this with a bit of fooling around, I'll play with it through my day and let you know how I get on!

 

Thanks

 

@chrisbutler 

 

Its a busy chart but...this maybe?

 

Perf
| where TimeGenerated > ago(60d)
| where ObjectName == "LogicalDisk" | where CounterName == "% Free Space"
| where InstanceName has ":"  // just drive letters
| make-series pctDiskFreeSpace = max(CounterValue)  default=0 on TimeGenerated  in range(ago(60d), now(), 12h) by CounterPath
| render timechart title ="Virtual Machine Disk Usage" 

 

Best Response confirmed by Clive Watson (Microsoft)
Solution

@Clive Watson 

 

Hey Clive,

 

Yes it is a busy chart, I have extra WHERE statements similar to yours in the Query I'm actually using that filter our a bunch of the disks that I'm not particularly interested in (Azure VM BEK and Temp storage drives especially) however I've left those out of my post as it identifies some of the machine names (and therefore could be extrapolated to the DNS name with enough trial and error).

The issue with just using:

 

 

| where InstanceName has ":"

 

 

.......and specifying specific drive letters is that the Azure BEK encryption drives don't seem to always end up with the same drive letter, so my WHERE statement has to be a bit more complex to pick specific drives from certain machines.

 

Back on topic, the make-series statement that you suggested yesterday has worked perfectly to get the y axis to go from 0 - 100, it also allowed me to give the Y axis a custom name label which I hadn't yet worked out how to do.

 

I also used this extend and strcat() statement to create a new series for the X axis with a better name and data that reads easier in the legend:

 

 

| extend DiskName = strcat(Computer," (", InstanceName,")")

 

 

You might have noticed I then used the new series in my version of your make-series to spilt the X series up the way I wanted.

 

After all that, I've ended up with something very similar to this:

 

 

Perf
| where TimeGenerated > ago(60d)
| where ObjectName == "LogicalDisk" | where CounterName == "% Free Space"
| where InstanceName == "C:" or InstanceName == "F:" or InstanceName == "E:"
| extend DiskName = strcat(Computer," (", InstanceName,")")
| make-series DiskFreeSpace = max(CounterValue)  default=0 on TimeGenerated  in range(ago(60d), now(), 12h) by DiskName
| render timechart title ="Virtual Machine Disk Usage" 

 

 

 

Which results in this:

 

Annotation 2019-10-02 085027.png

 

The data is quite spiky as the VMs are all relatively new, so the series will smooth out over a couple of months, and I still have some work to do to try and get it to display in local time (+12 GMT NZST), move the legend to the bottom (more like the built in Azure charts) and remove the dots off the series lines....... but fundamentally, this gives me what I need.

Thank you very much for you help! I'm learning a lot as I go!

Great feed back Chris, thanks for sharing the example to help others! Best wishes Clive
Hi all,

There is now a working solution and more options in render are supported, see my example:

https://cloudblogs.microsoft.com/industry-blog/en-gb/cross-industry/2020/05/11/log-analytics-improve...