Welcome to Chartfactor Documentation¶
ChartFactor is a data visualization toolkit that helps create next generation data applications. ChartFactor provides the following benefits:
- Rich library of pre-packaged visualizations
- Data providers for several data technologies
- Clear and concise programming model
Let’s explore these areas in more detail.
Rich library of pre-packaged visualizations¶
Data visualizations, even simple bars, can be time consuming to implement when taking into account details such as labels, legends, tooltips, colors, axis display, between others. We also need to consider animation when users interact with their data. ChartFactor not only removes the work of programmatically binding the data to the chart, but also provides sensible defaults for many out-of-the-box visualizations to light up powerful visualizations in minutes.
Data providers for many data technologies¶
It is common for modern data environments to include several data source technologies. For example, data for log analysis may reside in ElasticSearch while data obtained from business operations may reside in big data stores such as Impala, Dremio, or behind a BI product like Zoomdata. ChartFactor encapsulates interactions with these technologies behind data provider implementations to enable obtaining aggregate or raw data in a uniform fashion. Developers can also plug in their own data providers if needed. The ChartFactor core components are separate from protocols, applications, and other packages, enabling data provider upgrades and new feature additions to be accomplished faster and with minimal retesting of the entire data application.
Visualization libraries are constantly evolving to provide better user experience and performance. ChartFactor allows developers to take advantage of their favorite visualization libraries without limitation.
Clear and concise programming model¶
Several asynchronous programming models exist to interact with backend systems. Examples are callbacks, promises, and generators. The typical implementation invokes a backend query API and provides a callback function to process results and handle errors. Under this model, it is common to see one callback calling the next callback in a chain that quickly becomes hard to read and maintain. To simplify this model, ChartFactor provides a declarative way to specify data aggregations and how visualizations should be rendered. For example, on the data side, developers can specify how data is grouped, sorted, limited, what metrics are aggregated, what operation is used in the aggregation. On the visualization side, developers can specify the type of chart to render and all its visualization details. This declarations become a “program” that ChartFactor then executes in an efficient way. ChartFactor will query the data, wait for the data to be returned, and render visualizations according to the declarations provided.
What are the innovations that ChartFactor brings to data application developers¶
ChartFactor (patent pending) simplifies the development of data applications through the following innovative components: 1) A computational DAG (directed acyclic graph) that allows developers to declare operations for later execution 2) An optimization component to optimize operations in the DAG before execution 3) An execution engine to perform all operations defined in the DAG 4) Pluggable data providers to translate the defined queries to technology-specific data query syntax 5) Pluggable visualization providers to translate visualization instructions into technology-specific visualizations