JinGem

Results 2 issues of JinGem

![20190824_160929](https://user-images.githubusercontent.com/42028814/63636196-cc865980-c69e-11e9-84bc-22e36737291f.gif) 实现效果如图,可控x轴宽度,在scroll开启的情况下。 由于本人只使用了linechart,所以该功能在其他图表中是否能够正常使用,我并不清楚。 1. 修改Charts构造函数 添加flex属性`opts.flex = opts.flex || 1;` 2. 修改getXAxisPoints函数 `var dataCount = opts.enableScroll ? categories.length*((2-opts.flex).toFixed(1)==0 ? 1 : (2-opts.flex).toFixed(1)) : categories.length;` 将dataCount计算方式重写,这个就是控制放大比例的 3. 修改Charts.prototype.updateData函数 添加 `//更新放大比例 this.opts.flex...