Skip to content

matthewnitschke/kosher-pie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

capture

Kosher Pie

A knockout js pi chart component. CSS and HTML from Lea Verou

Demo and API

Installation

<script src='/path/to/knockout.js'></script>
<script src='/path/to/kosher-pie.js'></script>

Usage

It's a knockout js component, so add it to you html like so

<kosher-pie params="{ data: [50, 100] }"></kosher-pie>

Current parameters:

Name Type Required Explanation
data Array<Number> true values that are represented in the pie chart
colors Array<String> the colors of the pie slices

Please see examples folder for working example