8000 GitHub - SmarkSeven/PieLabel: A Pie Chat with D3.js v4
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SmarkSeven/PieLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PieLabel

A Pie with D3.js v4

use case:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src="http://d3js.org/d3.v4.min.js"></script>
  <script src="./PieLabel.js"></script>
  <title>D3_DEMO</title>
  <style>
  body {
      display: flex;
      height: 100vh;
      justify-content: center;
      align-items: center;
    }
  </style>
</head>
<body>
  <svg id="fillgauge" width="800" height="500"></svg>
  <script language="JavaScript">
    const data1 = [{label: 'Go', value: 10}, {label: 'Rust', value: 20}, {label: 'R', value: 30}]
    const data2 = [{label: 'Go', value: 30}, {label: 'Rust', value: 30}, {label: 'R', value: 30}]
    const pie = new Pie("fillgauge", data1)
    pie.render()
    document.body. => {
      pie.update(data2)
    }
  </script>
</body>
</html>

About

A Pie Chat with D3.js v4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0