Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G g1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cto
  • g1
  • Issues
  • #43

Closed
Open
Created Apr 25, 2018 by S Anand@s.anandOwner

Sanddance facets

var barchart = g1.sanddance({
  layout: 'grid'
  width: 100,
  height: 100,
  // Group by category, which is a number from 0 - 3
  group: function(d) { return d.category },
  facets: [
    {x: 0, y:  0, width: 100, height: 20},
    {x: 0, y: 25, width: 100, height: 20},
    {x: 0, y: 50, width: 100, height: 20},
    {x: 0, y: 75, width: 100, height: 20},
  ],
  data: data
})

d3.selectAll('circle')
  .data(data)
  .call(barchart)

... should create something like this:

image

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking