Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions _posts/2018-08-21-chart-object.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: post
title: "About the Chart Object"
date: 2018-08-21 3:50:00 -0500
author: "Kimberly Orr"
categories: dev
tags: "about dev"
excerpt_separator: <!--read more-->
---

# About the Chart objects in mpl-altair

**ChartMetadata**

mplaltair starts the conversion by parsing the Altair chart and storing information about the chart as an object.

The `parse_chart.ChartMetatdata` object stores the chart's data, mark, and encodings. The encodings are each stored as `parse_chart.ChannelMetadata` objects.

**ChannelMetadata**

Each `parse_chart.ChannelMetadata` object parses and holds all of the necessary information for each encoding in an Altair chart. In this step, the specific data used for that encoding is stored as an array that Matplotlib can handle. Temporal data is converted to a Matplotlib-friendly format.