Skip to content

Instantly share code, notes, and snippets.

@jhilker98
Last active April 5, 2021 18:42
Show Gist options
  • Save jhilker98/c02f3fe8a89b0cc12ce131cf33fc7b07 to your computer and use it in GitHub Desktop.
Save jhilker98/c02f3fe8a89b0cc12ce131cf33fc7b07 to your computer and use it in GitHub Desktop.
Project Code for my dashboard
[
{
"name": "Chronicler",
"srclang": "Python",
"status": "In Development"
},
{
"name": "All For One",
"srclang": "HTML",
"status": "In Development"
},
{
"name": "Newsfeed",
"srclang": "Python",
"status": "Planning"
},
{
"name": "Gonews",
"srclang": "Golang",
"status": "Planning"
}
];

Bar Charts

Projects By Language

var projectLangs = ['Python', 'Go'];
var projectLangCount = [2, 3];

var projectLangData = {
  x: projectLangs,
  y: projectLangCount,
  type: 'bar',
  text: projectLangCount.map(String),
  textposition: 'auto',
  hoverinfo: 'none',
  marker: {
    color: 'rgb(158,202,225)',
    opacity: 0.6,
    line: {
      color: 'rgb(8,48,107)',
      width: 1.5
    }
  }
};

var projectsByLang = [projectLangData];
var projectLangLayout = {
  title: "Projects By Language"
};
Plotly.newPlot('dashboard', projectsByLang, projectLangLayout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment