You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
LESSON LIST
-
4:48Timeseries Chart
-
3:10XY Chart
-
3:15Bar Chart
-
3:14Pie Chart
Take Topic Challenge
LESSON
XY Chart
Description
The XY Chart allows you show and visualize the relationship between two data keys
Video recorded using: Ignition 7.9
Transcript
(open in window)[00:00] Next, let's take a look at our XY Chart. Now we'll go back to Component Palate and we'll grab the XY Chart. Now, this looks very similar to the Time Series Chart. Now, as far as configuration of your Pens and Axises are concerned, they are about the same, so if you'd like a more in-depth look at the Pens or the Axis configuration, please see the Times Series Chart video. The main difference is that the domain is a numeric value, not a date. So, to give you an example, we'll try to set this chart up in a similar manner. We'll take our tag history, we'll drag it down to the Data Key. And we'll take our time stamp key, we'll go to the Domain Key here. Scroll up, we'll get rid of these Pens, and we'll drag Random Double onto our chart. And if we take a look over in the Preview panel, you'll see that our domain is showing a series of very large numbers here. That large number you're seeing is the literal value of the time stamp the history system's using. So, you can see that the XY Chart doesn't convert your time stamp into something a little more human readable. However, the XY Chart does have its uses. If we head over to the Data panel, you'll see I have the Static CSV. And this is just some fictional data I created, just showing a temperature and then an OEE value recorded at the same time. Now, say I wanted to see if there was any relation between these two columns. We'll head back to the Design panel. Scroll down a little bit. And we'll drop a new XY Chart. We'll head over to the Key Browser. We'll minimize tag history, expand our Temp versus OEE data source, and drag and drop Temp versus OEE to our Data Key. And then, for the Domain Key, we'll go ahead and use Temperature. First, I need to clear out these Pens. Now we can drag OEE down to our Pens. And let's rename this since this isn't just straight OEE, this is also versus Temp. And I'd like this to be, now, I don't want to show, like, a line, I want to show just plot points. So, we'll change the style to a dot. And we'll increase the width. Head back to our Chart Options. We'll change the label on the range axis. OEE. And let's head to the Properties tab for the XY Chart. Now, if we scroll down, you'll see there's this X-Axis section. This doesn't exist on the Time Series Chart, but there are some similar properties. So, for example, instead of a Date Format, we have a Number Format here. We'll leave that alone, but I would like to give my X-Axis a label, so, let's put Temp. Now, I don't need my legend here, so I'm going to scroll up and set Show Legend to False. And if we take a look at the Preview panel, we'll scroll down. You can see that we've visualized our data points here. So it looks like around 70 degrees to 90 degrees we're at optimal OEE. When it's colder or hotter than that, our operation seems to suffer. Maybe it's too cold for the operators, or the machinery is having problem in the colder temperatures. You can see that the XY Chart allows you to very easily visualize data.