
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@domoinc/bar-capacity-gauge
Advanced tools
Bar gauge with actual and quota value
Type: color
Default: "#333333"
Color of the value text when it is in the right bar
Type: string
Default: "BarCapacityGauge"
Name of chart for reporting
Type: color
Default: "#73B0D7"
Color of the left bar
Type: string
Default: "Open Sans"
Font family for the label and number values
Type: number
Default: 250
Units: px
Type: boolean
Default: false
If true, it signals to the widget that it is running on a mobile device. Should be called before draw and then NEVER changed.
Type: color
Default: "#333333"
Color of the label text
Type: number
Default: 14
Units: px
Text size of the labels
Type: number
Default: 0
Units: px
Min of the chart
Type: color
Default: "#E5E5E5"
Color of the right bar
Type: color
Default: "#333333"
Color of the quota text
Type: boolean
Default: true
Flag for turning off data validation
Type: number
Default: 10
Units: px
Space between edge of bar and text
Type: boolean
Default: true
Flag for turning off the mimic of illustrator's scale functionality
Type: color
Default: "#333333"
Color of the value text when it is in the left bar
Type: number
Default: 14
Units: px
Text size of the current value and quota value
Type: number
Default: 10
Units: px
Text size of the percentage number
Type: number
Default: 250
Units: px
Type: number
Default validate:
function (d) { return !isNaN(this.accessor(d)) && this.accessor(d) >= 0; }
Default accessor:
function (line) { return Number(line[0]); }
Type: string
Default validate:
function (d) { return this.accessor(d) !== undefined; }
Default accessor:
function (line) { return line[2] === undefined ? undefined : String(line[2]); }
Type: number
Default validate:
function (d) { return !isNaN(this.accessor(d)) && this.accessor(d) >= 0; }
Default accessor:
function (line) { return Number(line[1]); }
//Setup some fake data
var data = [
[500, 700, 'TEAM BLUE']
];
//Initialze the widget
var chart = d3.select('#vis')
.append('svg')
.attr({
width: '500px',
height: '500px'
})
.append('g')
// .attr('transform', 'translate(0,100)')
.chart('BarCapacityGauge')
.c({
width: 250,
height: 60,
// labelTextColor: 'red',
// valueTextColor: 'orange',
// alternateValueTextColor: 'yellow',
// valueTextSize: 40,
// labelTextSize: 50,
// valueTextSizePostfix: 30
})
//Render the chart with data
chart._notifier.showMessage(true);
chart.draw(data);
// var data2 = [
// [100, 500, 'TEAM RED']
// ];
// setTimeout(function() {
// chart
// .c({
// width: 400,
// height: 120
// })
// .draw(data2);
// }, 2000)
FAQs
BarCapacityGauge - Domo Widget
We found that @domoinc/bar-capacity-gauge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.