I'm using Timelion to draw my time series, but I'd like to draw points or color the lines red if the document contains an "error" field. Is there a way to do this with conditionals?
Ideally, I'd like some HUGE pointer identifying where the errors are. Below is an example of what I'm trying. The top function draws the time series I'm interested in viewing which is great, but the second one just draws bars with the count of errors at that point.
.es(q="_exists_:json.durationGetOwner", index=filebeat-*, metric="avg:json.durationrelinquish", split=json.environment.consensus_type:4).label('$2 $1 duration ms', '^.*duration(\S+) >.*type:(\S+).*$'),
.es(q="json.type:Error AND json.name:monitoring-tests").bars(width=1).color('#ff0000').label('Test Wide Errors')
Related
Basically I'm building an area graph with Chart.js, the data that I'm using in order to build the graph usually contains a peak that is much higher than the rest of the points and the y-axis range of values will be to high, to notice the diference between the lower points and it wil seem almost as a parallel line to the x-axis as we can see in this image:
Graph with problems
The solution I want to try is to skip the values from the y-axis between the lower points and the peak of the graph, and accomplish a graph presentation similar to this one:
Solution graph sketch
As we can see at this sketch the y-axis has a normal scale until 300 but then as the next point is to far away from the other ones the y-axis values are skiped.
So what I want to know is if this jump on the values of the y-axis is possible to achieve with this library (Chart.js) and if so where can I find documentation about it, because I already looked everywhere and couldn't find a thing. If not I would ask you for recommendations of any other librarys where I could achieve this.
I've created a time series plot in R using the ggplot package, but I wanted to see if I could further customize it by creating target zones. I originally started with an Excel plot that allows me to move a gray box to different areas of the plot as an easier way to point out a range of temperatures. However, I wanted to see if I could replicate this in R. Here's a screenshot of my Excel plot to better explain my goal: Time Series on Excel. On the time series plot, you can see a gray box that you can drag around and change the size of to better define a range of temperatures (in this case, it covers from 15-25C). Is this possible to do on top of my time series plot in R? I'm only starting to code in R so it's been quite hard for me to navigate, and I appreciate any help I could get. Thanks!
I am trying to find a way to have a dynamic plot (for the moment I use plotly) in which if you keep the mouse over a certain point it is calling a routine which is showing something, e.g. a photo that is referring to that specific data point. An example is to have the MNIST data-set clustered in 2 dimensions (e.g. using t-SNE) and when you go over the points with the pointer you see the actual digit which stays for that point.
I have a real-time line chart. For that I use TimeSeries. Now I get new values every second. But I don’t want to get a x-axis line every second. I like to get one every ten seconds.
So maybe, first it would be important to know where the x-axis lines were painted. Is it xymultipleseriesdataset.addSereies(timeSeries)? So maybe I can create a loop that add every 10 second a new title for the x-Axis... or am I totally wrong?
If I am right, you are asking for a way to control which labels are shown on the x-axis.
To do that, you may use the XYMultipleSeriesRenderer.addXTextLabel(timeInMillis, "requiredlabel").
This will cause the automatic generation of labels to stop and you can then have complete control on which labels are shown and which are not.
Edit:
Seems like I was wrong about automatic generation of labels stopping.
Use the method XYMultipleSeriesRenderer.setXLabels(0) to stop the generation of labels. This method is used to set how many labels should be generated for the x axis. Passing 0 should stop automatic labels to stop altogether.
I have a long list of Linux timestamps, representing the second that events occurred over a one-hour period (3600 seconds). Most events are separated by 3-4 seconds but some are separated by one second and some happen at the same second:
1371995100
1371995103
1371995106
1371995106
1371995107
1371995109
1371995111
1371995113
1371995114
1371995118
1371995121
I would like to plot this data as a series of lines representing "event happened", as such (notice that 1371995106 occurs twice):
Actually, since one-second resolution is finer than necessary, but density is important, events that happen at the same time can 'carry over' to the next free second (so it would appear as if the second event that happened at 1371995106 were plotted against the next free second, which is 1371995108):
Can this be plotted using CLI tools in common Linux distros? I have tried plot (gnuplot) but been unable to find examples of creating graphs from one-dimensional data.
You are trying to do a frequency plot. Assuming your data is in a file called data then
set format x "%.0f"
set boxwidth .9
set style fill solid
plot 'data' using ($1):(1) smooth frequency title 'Frequency' with boxes
format stops the label being output with exponents
boxwidth sets the width of the box so there's a gap.
The style is set to filled boxes
smooth frequency sums the y values which are set to 1 by the :(1) the x being the first field in the file ($1).