mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 15:00:08 +00:00
增加设置图表Size支持
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user