增加设置图表Size支持

This commit is contained in:
monitor1394
2019-07-15 19:21:22 +08:00
parent 3cad69e40b
commit f9a853dee4
9 changed files with 66 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ namespace XCharts
get{
return new Bar(){
m_InSameBar = false,
m_BarWidth = 0.7f,
m_BarWidth = 0.6f,
m_Space = 10
};
}
@@ -41,8 +41,9 @@ namespace XCharts
{
base.Reset();
m_Bar = Bar.defaultBar;
m_Title.text = "BarChart";
RemoveData();
AddSerie("bar1", SerieType.Line);
AddSerie("serie1", SerieType.Line);
for (int i = 0; i < 5; i++)
{
AddXAxisData("x" + (i + 1));