A really quick, you know, working with the giraffe plots each pot requires the config property. So as you can see, we get our data from the flux CSV data is, you know, the flux table line layers is the line layer. And then, you know, we have two examples of this config, but basically you have the layers and you have the actual CSV data. Pretty straightforward.
Then the actual line layer property is how you define, you know, in your graph. You're going to have a ton of options. You have your X and Y plot your colors, your theme, your your type. Like I said, we have actually multiple line types. Like we we have a lot of different graph types that I just didn't show an example of because we have so many. And like I said, here's the example that I was talking about. This one's very simple. You were literally hard coding the data right here. You know, this is your X data. This is your Y data. It's very simple. It's very brute force, but I think it really gets across how simple giraffe is to use. You know, this doesn't take very much to get it up and going and you don't have to use it with InfluxDB. We might be a time series provider, but you know, giraffe is open source. You can use it however you would see fit.
Getting data into giraffe using our InfluxDB client, so I didn't put in the API one because you know, this is a JavaScript talk. So I decided to do the JavaScript client. You basically just need your URL, your token, your org ID, and your bucket, which is all things that you would find in the InfluxDB client. From there, you just connected up, you send up your query which basically says, Hey, I want the data from, you know, the span of time, the span of dates, et cetera, et cetera. I want anything above 500, anything below 500, some queries get very intense. I didn't put an example here because it can get very long, but basically you're saying I want this amount of data, please give it to me in an annotated CSV format so I can display it in my giraffe app.
Now, the big thing I also wanted to mention is the fact that giraffe does have a sandbox. So our sandbox is based on storybook. So, you know, you come in here, you get the storybook up and running, which is pretty easy. You just do like a yarn start super simple command. And from here you can actually see, I think we have about 30 to 40 examples of different types of graphs in here.
Comments