[4.2.0 RC] NumericAxis minimum adjust issue if < 1
REQUIRED INFORMATION
Ext version tested: Browser versions tested against: DOCTYPE tested against: Description: - The NumericAxis' minimum seems to be auto-calculated incorrectly if it should fall between 0 and 1.
- In the test case I provide another dataset there the minimum is auto-calculated correctly if it is > 1.
Steps to reproduce the problem: The result that was expected: - The minimum is about 0.7 (likewise 70 with another dataset).
The result that occurs instead: Test Case:
Code:
<!DOCTYPE html>
<html>
<head>
<title>NumericAxis adjust minimum issue if < 1</title>
<link rel="stylesheet" href="../resources/css/ext-all.css" />
<script src="../ext-all-debug.js"></script>
<script>
Ext.onReady(function () {
Ext.create("Ext.panel.Panel", {
renderTo: Ext.getBody(),
height: 400,
width: 400,
layout: "fit",
title: "Chart",
items: [{
xtype: "chart",
axes: [{
position: "left",
fields: ["Value"],
type: "Numeric"
}, {
position: "bottom",
fields: ["XField"],
type: "Category"
}],
series: [{
xField: "XField",
yField: "Value",
type: "line"
}],
store: {
fields: [{
name: "XField"
}, {
name: "Value"
}],
data: [{
XField: "Jan",
Value: 0.75
}, {
XField: "Feb",
Value: 0.80
}, {
XField: "Mar",
Value: 0.85
}, {
XField: "Apr",
Value: 0.90
}, {
XField: "May",
Value: 0.80
}, {
XField: "Jun",
Value: 0.75
}, {
XField: "Jul",
Value: 0.85
}]
//data: [{
// XField: "Jan",
// Value: 75
//}, {
// XField: "Feb",
// Value: 80
//}, {
// XField: "Mar",
// Value: 85
//}, {
// XField: "Apr",
// Value: 90
//}, {
// XField: "May",
// Value: 80
//}, {
// XField: "Jun",
// Value: 75
//}, {
// XField: "Jul",
// Value: 85
//}]
}
}]
});
});
</script>
</head>
<body>
</body>
</html>