Table of Contents
What is a Spark Chart
Spark Chart is a generic term for a regular chart used inline, as a micro-chart, embedded within a grid cell or inline with a text. Most our Inline Charts may qualify as Spark Charts. However, we’ll apply this term here only to a specific category of Inline Charts.
Our category of Spark Charts:
- Spark Line – inline micro-version of a single-series straight Line Chart.
- Spark Area – inline micro-version of a single-series straight Area Chart, with semi-transparent fill color by default.
- Spark Columns – inline micro-version of a single-series Column Chart, with up/down colors for positive/negative colors.
- Spark Win/Loss – looks like a Spark Column chart, but all positive or negative spikes have the same size. You get one positive spike or column for a positive or True value, with the up color. And one negative spike or column for a negative or False value, with the down color.
- Spark Pie – inline micro-version of a single-series Pie Chart.
- Solid Gauge – inline micro-version of a single-value semi-doughnut Solid Gauge.
All our Spark Charts are multi-series, based only on numeric columns – except for Win/Loss, which also works on Boolean values. They are based on several other grid columns. They may be set anywhere, but an empty column may be automatically appended if current column is not empty.
Steps to Create a Spark Chart
Start Visual Xtractor or Data Xtractor. Connect to a database. Create or design a SQL query. Run the query and check the results.
- Display and enable the Inline Chart query builder.
- Set any column to one of the Spark Charts – Spark Line, Spark Area, Spark Columns, Spark Win/Loss, Spark Pie or Solid Gauge settings.
- If the column wasn’t empty, a new one may be appended with this setting.
- In the Edit Inline Chart Series popup, reference the other columns, or constant values, the chart is based on.
Spark Charts Demo Query
Look for the ready-to-use Spark Charts generated query under the Queries > Demo Queries > Inline Charts > Spark Charts folder. Click on the “add demo queries” command link, if not there.
You have all Spark Charts here, except for the Solid Gauge, which is demo-ed in the Solid Gauge query.
All Spark Charts are based on multiple columns that must be referenced as parameters. You may also specify constant values instead.
Here is the Edit Inline Chart Series popup for a Spark Line: it’s based on the q1, q2 and q3 grid columns, and a constant value 10. This means first three values for the line are dynamically taken from the current row and the referenced columns. But we also add each time a final constant value 10.
Customize your Spark Chart
- Show or hide the horizontal X axis for Spark Line/Area/Column or Win/Loss.
- Show plain or gradient fill for Spark Area/Column/Pie/Gauge or Win/Loss.
- Show or hide point markers for Spark Line/Area charts.
- Show standard icons as monochrome, with no colors.
- Increase any individual row size (with the mouse on the row header) for bigger charts.
- Creating Spark Charts in Data Xtractor or Visual Xtractor is fast and intuitive: select one of the Spark Line/Area/Column/WinLoss/Pie or Gauge inline charts, and reference the columns they apply to.
- Use toolbar buttons for a multitude of configuration options.
- Increase any row’s size for bigger chart images.