I have a graph of memory usage over time that looks like this:
I set the value y-axis: { max:n } nto 1024 (which means 1024 MB of RAM).
y-axis: { max:n }
n
How do I get Flot to change the labels of the Y axis so that they appear:
1024 768 512 256 128 0
You can use the parameter ticksfor this:
ticks
yaxis: { max: 1024, ticks: [128, 256, 512, 768, 1024] }
Here you can test it , the option markingsis just a little more comfortable if you after so effect at all.
markings
Source: https://habr.com/ru/post/1770840/More articles:Java Method Naming Conventions - javaConditional HTML for target mode ie8 quirks - htmlDo I need to rebuild SQL Server database indexes? - sql-serverASP.NET MVC 2: Disabled TextBox for DateTime returns null - asp.net-mvc-2Может ли Cygwin получить доступ к Windows Hidden Shares? - cygwinПочему данные DropDownList привязаны к списку не работают? - drop-down-menuFrequency response using FFT in MATLAB - matlabWhat is the best way to store web application images in a file system - databaseGet row from index in Silverlight DataGrid - silverlightOptimizing a join query to retrieve data from A with a condition on B sorted by B - joinAll Articles