Skip to main content
In this visualization, the card is green if the KPI at or beating target and red if not.

Setup

This markdown in this example complex and references a lot of calculations to position and style elements. Use this sample dataset, instructions, and code to recreate this example in your own instance.
  1. Download the sample CSV.
  2. Upload the sample CSV to your instance. Refer to the Data input tables guide for instructions.
  3. In a new query tab, select all fields except Candlesticks Count.
  4. Format the fields as follows:
    • Currency - Total Sales and Target Sales
    • Percent - Progress Bar Value, Progress Bar Target, From Target, Candle Value, Candle Target, Change Py, and Change Pm
  5. Format Created At Month to the month abbreviation with 2 digits for the year.
  6. Sort the query so the most recent month in the data set, Feb 25, is first.
Your query should look like this: You can now click Chart and select the Markdown chart type. Copy and paste the sample code below into the markdown editor. Note: To recreate this with your own data set, you’ll need a to create your own calculations for most fields. The formulas below refer to the column positions in the screenshot above:

Example code