Skip to content

Cannot override the ymin value when all y values are equal to ymin #80

@monicao

Description

@monicao

When all y values in a data set are 0 the y-axis range is -1 to 1. I tried overriding the ymin value, but the change did not take effect because the ymin == ymax.

  Morris.Line({
    element: 'sales_chart',
    data: data['product_analytics'],
    xkey: 'time',
    ykeys: ['sales'],
    ymin: 0,
    labels: ['Total Sales'],
    smooth: false,
    preUnits: '$'
  });

Screenshot: http://d.pr/i/D5KY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions