All Projects → arpitnarechania → d3-dotmatrix

arpitnarechania / d3-dotmatrix

Licence: MIT License
Open Source Javascript library to render Dot Matrix Charts

Projects that are alternatives of or similar to d3-dotmatrix

D3 Spotmatrix
Open Source Javascript Library to render Spot Matrix Charts using D3.js
Stars: ✭ 12 (-14.29%)
Mutual labels:  d3, chart, opensource
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (+1242.86%)
Mutual labels:  d3, chart
Visx
🐯 visx | visualization components
Stars: ✭ 14,544 (+103785.71%)
Mutual labels:  d3, chart
Visavail
A D3.js Time Data Availability Visualization
Stars: ✭ 245 (+1650%)
Mutual labels:  d3, chart
Markvis
make visualization in markdown. 📊📈
Stars: ✭ 1,509 (+10678.57%)
Mutual labels:  d3, chart
React D3 Components
D3 Components for React
Stars: ✭ 1,599 (+11321.43%)
Mutual labels:  d3, chart
a2d3
Flexible and extensible D3 directives for Angular 2
Stars: ✭ 22 (+57.14%)
Mutual labels:  d3, chart
React Charts
⚛️ Simple, immersive & interactive charts for React
Stars: ✭ 1,302 (+9200%)
Mutual labels:  d3, chart
multi-chart
lit-element building blocks for charts and visualization (based on d3.js v5)
Stars: ✭ 24 (+71.43%)
Mutual labels:  d3, chart
datart
Datart is a next generation Data Visualization Open Platform
Stars: ✭ 1,042 (+7342.86%)
Mutual labels:  d3, chart
Simple-charts
Simple responsive charts
Stars: ✭ 15 (+7.14%)
Mutual labels:  d3, chart
Just Dashboard
📊 📋 Dashboards using YAML or JSON files
Stars: ✭ 1,511 (+10692.86%)
Mutual labels:  d3, chart
D3.chart.sankey
Reusable D3 Sankey diagram using d3.Chart
Stars: ✭ 103 (+635.71%)
Mutual labels:  d3, chart
Sunburstr
R htmlwidget for interactive sunburst plots
Stars: ✭ 177 (+1164.29%)
Mutual labels:  d3, chart
C3
📊 A D3-based reusable chart library
Stars: ✭ 9,163 (+65350%)
Mutual labels:  d3, chart
Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 215 (+1435.71%)
Mutual labels:  d3, chart
britecharts-react
Britecharts-react is a React wrapper for the Britecharts charting library. It allows the use of Britecharts charts within a React application.
Stars: ✭ 110 (+685.71%)
Mutual labels:  d3, chart
Ember C3
📈 Ember addon library for C3, a D3-based reusable chart library.
Stars: ✭ 81 (+478.57%)
Mutual labels:  d3, chart
Diffract
A set of d3 based visualization components built for React
Stars: ✭ 87 (+521.43%)
Mutual labels:  d3, chart
Chart Tool
A responsive charting application
Stars: ✭ 244 (+1642.86%)
Mutual labels:  d3, chart

d3-dotmatrix

d3-dotmatrix is an open-source JavaScript library for rendering Dot Matrix Charts using the D3.js library.

Check out an Example where you can test various configuration options.

Installation

Download d3-dotmatrix using bower.

bower install d3-dotmatrix --save

To use this library then, simply include d3.js, DotMatrix.js and DotMatrix.css:

<script src="/path/to/d3.min.js"></script>
<script src="/path/to/dist/DotMatrix.css"></script>
<script src="/path/to/dist/DotMatrix.js"></script>

Usage

To use this library, you must create a container element and instantiate a new DotMatrixChart:

<div id="DotMatrix"></div>

    var dataset =
    [
        { group: "Group 1" ,category: "Category 1", count: 48},
        { group: "Group 1" ,category: "Category 2", count: 27},
        { group: "Group 1" ,category: "Category 3", count: 12},
        { group: "Group 1" ,category: "Category 4", count: 16},
        { group: "Group 2" ,category: "Category 1", count: 35},
        { group: "Group 2" ,category: "Category 2", count: 12},
        { group: "Group 2" ,category: "Category 3", count: 16},
        { group: "Group 2" ,category: "Category 4", count: 42},
        { group: "Group 3" ,category: "Category 1", count: 39},
        { group: "Group 3" ,category: "Category 2", count: 25},
        { group: "Group 3" ,category: "Category 3", count: 26},
        { group: "Group 3" ,category: "Category 4", count: 46},
    ];

Setting chart parameters

        var chart_options = {
		    dot_radius : 5,
		    no_of_circles_in_a_row: 40,
            dot_padding_left : 5,
            dot_padding_right : 5,
            dot_padding_top : 5,
            dot_padding_bottom : 5
		}

        DotMatrixChart(dataset,chart_options);

Options

Option Description Type Options
dot_radius The radius of the dots number 5
no_of_circles_in_a_row The number of circles in one row before line break happens number 40
dot_padding_left The left margin between dots number 5
dot_padding_right The right margin between dots number 5
dot_padding_top The top margin between dots number 5
dot_padding_bottom The bottom margin between dots number 5

Author

Arpit Narechania [email protected]

License

MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].