This lesson is part of the Reporting in Ignition course. You can browse the rest of the lessons below.

LESSON LIST

Autoplay Off

Description

The XY Chart allows you show and visualize the relationship between two data keys

Video recorded using: Ignition 8.1

Transcript

(open in window)

[00:00] Let's review how to use an XY chart. As mentioned in the previous video, the XY chart is similar to the timeseries chart, however it differs in that its domain axis is represented by a numerical value rather than a timestamp. So for the most part, this makes the XY chart ideal when trying to detail the relationship between two keys. Now, as far as the configuration of your pens and axes are concerned, they are about the same for both charts. So if you'd like a more in-depth look at the pens or axes configuration, please review the timeseries chart video. I'll drag an XY chart into my report to give you an example of how one works. For my data key, I'll drag in my tag history query, and we'll take our timestamp and assign it to the domain key. Let's remove these placeholder pens and we'll drag random double onto our chart. If we navigate to the preview tab, 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 timestamp the history system is using.

[01:06] So you can see that the XY chart doesn't convert your timestamp into something a little more human readable. Let's go ahead and change our charts data to make better use of it. If we head over to the data tab, you'll see I have this static CSV, and this is just some fictional data I created 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 tab and select the XY chart to configure this relationship. 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. Then we need to remove this random double pen. 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. Instead of representing this data as a line, I'd rather have some plot points, so I'll go ahead and open the editor for this pen, and then I'll update the style to a dot, and we'll increase the width or the weight of the dots as well.

[02:08] We can click on the back arrow to head back to our chart options. Let's change the label on our range axis to 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. Many of these don'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. If we look at the preview tab, now you can see that we 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 problems in colder temperatures. You can see that the XY chart allows you to very easily visualize data and their relationships.

You are editing this transcript.

Make any corrections to improve this transcript. We'll review any changes before posting them.