====Profile Queries==== Profile queries allow you to use your ARDI relationships as axes on your charts. ===Primary Axis=== The most common usage for profile charts is when you have several similar pieces of equipment doing a job side-by-side. In the Optrix Blast Furnace demo, we have three natural gas valves next to one-another. There is a //profile// relationship between each of these, going from #1 to #3. {{:grafana:profile.png?600|}} If we start at **Natural Gas Valve #1**, we can follow the **Profile** relationship by setting the Primary Axis to //Profile// to create a single line that contains values for each one of our three valves. Although it's relatively trivial in this case where there are only three items, it can work with any length of relationship, returning hundreds of items in some cases. ===Secondary Axis - Time=== Profile relationships can also be used to generate heatmaps and trends of multiple lines across a profile. By changing the 'Secondary Axis' from **None** to **Time**, you get distinct series for each of the profile channels, over time. This allows you to make line charts... {{:grafana:profiletimeline.png?400|}} And if you select //Time Series Buckets// when creating a heat map, you can also create heat maps as well. {{:grafana:profiletimemap.png?400|}} ===Secondary Axis - Relationship=== In some cases, you might want to create a heat map where one of the axes are **not** time. The Blast Furnace example again shows this. The //staves// on the blast furnace are panels that make up the wall of the furnace. They are laid out like a grid - there are eight on each level, and there are six levels high, meaning there are 48 staves all up. Each stave has the **Profile** relationship going between the staves //next// to it on the same level. Each stave also has a **Vertical Profile** relationship going between it and the staves //on top// of it. So if we ask for a profile of the first stave where **Profile** is the Primary and **Time** is the Secondary Axis, we get the following... {{:grafana:profilestaves.png?400|}} But if we change the Secondary Axis to **Vertical Profile**, we get this... {{:grafana:profilestaves2d.png?400|}} Where we can see the most recent values for all 48 staves.