{"repo":"vasturiano/proportions-chart","free":true,"listed":false,"github":"https://github.com/vasturiano/proportions-chart","clone":"git clone https://github.com/vasturiano/proportions-chart.git","description":"A one-dimensional proportional chart web component for visualizing categorical data","language":"JavaScript","stars":11,"topics":["proportions","chart","data-visualization","d3js","categorical-data"],"license":"MIT","category":"analytics","readme_excerpt":"Proportions Chart ================= [![NPM package][npm-img]][npm-url] [![Build Size][build-size-img]][build-size-url] [![NPM Downloads][npm-downloads-img]][npm-downloads-url] An interactive one-dimensional proportions chart for representing categorical data. Quick start or using a script tag then API reference Method Description Default --- --- :--: data ([ array ]) Getter/setter for the chart data, as an array of series objects, each representing a chart segment. [] width ([ number ]) Getter/setter for the chart width in px. &lt;window width&gt; height ([ number ]) Getter/setter for the chart height in px. &lt;window height&gt; label ([ string or fn ]) Getter/setter for a series object label accessor, used to display labels on the segments and their tooltips. name size ([ string or fn ]) Getter/setter for a series object size accessor, used to compute the length of the segments. value color ([ string or fn ]) Getter/setter for a series object color accessor, used to color the segments. grey sort ([ fn ]) Getter/setter for the compare method used to sort the series. A value of null ( default ) maintains the existing order found in the input data structure. This method receives two arguments representing two series objects and expects a numeric return value ( -1 , 0 or 1 ) indicating the order. For example, to order segments by size, use: (a, b) = b.size - a.size . &lt;existing order &gt; showLabels ([ boolean ]) Getter/setter for whether to show labels in the segments. Regar","default_branch":null,"files":null,"tree":[],"storefront":"/r/vasturiano","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vasturiano/proportions-chart/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}