Skip to content

Default mid-point bar wrong when using numType: absolute #17

@payamazadi

Description

@payamazadi

Here's an example of the mid bar not working correctly when numMax is 50 or below (actually it doesn't work for anything below 100 it seems). Not only is the bar at the wrong place, but when <50, the bar is off the chart. My use case: I need bars to represent heights of people in a competition. I effectively want the bar to range from 36 inches to 48 inches.

var opt = { numType: 'absolute', numMin:0, numMax:50, numMinLabel: true, numMaxLabel:true };
$('#bar1').barIndicator(opt);

49

fail1


40


var opt = { numType: 'absolute', numMin:0, numMax:48, numMinLabel: true, numMaxLabel:true };
$('#bar1').barIndicator(opt);
fail2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions