UXDivers / Gorilla-Player-Support

This is the public Gorilla Player support website
http://gorillaplayer.com
115 stars 17 forks source link

Gorilla Player can binding any object from DesignTimeData.json? #291

Open nqbjnh opened 6 years ago

nqbjnh commented 6 years ago

Hi, I use Microcharts, i create chart data and convert it to json string, i insert it to DesignTimeData.json

DesignTimeData.json

{   "MainPage.xaml": { "RadialGaugeChart":{ "HoleRadius": 0, "Margin": 20, "LabelTextSize": 16, "BackgroundColor": {   "Alpha": 255,   "Red": 255,   "Green": 255,   "Blue": 255,   "Hue": 0 }, "Entries": [   { "Value": 200, "Label": "January", "ValueLabel": "200", "Color": { "Alpha": 255, "Red": 38, "Green": 100, "Blue": 137, "Hue": 202.42424 }, "TextColor": { "Alpha": 255, "Red": 128, "Green": 128, "Blue": 128, "Hue": 0 }   },   { "Value": 400, "Label": "February", "ValueLabel": "400", "Color": { "Alpha": 255, "Red": 104, "Green": 185, "Blue": 192, "Hue": 184.77272 }, "TextColor": { "Alpha": 255, "Red": 128, "Green": 128, "Blue": 128, "Hue": 0 }   },   { "Value": -100, "Label": "March", "ValueLabel": "-100", "Color": { "Alpha": 255, "Red": 144, "Green": 213, "Blue": 133, "Hue": 111.75 }, "TextColor": { "Alpha": 255, "Red": 128, "Green": 128, "Blue": 128, "Hue": 0 }   } ], "MinValue": -100, "MaxValue": 400 }   } } 

MainPage.xaml

<StackLayout>
    <forms:ChartView  Chart="{Binding RadialGaugeChart}" HeightRequest="150"  /> 
</StackLayout>

Result Gorilla player can not show chart.

Please, any solution for me. Thanks

npagare commented 6 years ago

Hi @nqbjnh, just curious to know if you could address this issue? I am new to Grial world as well. Looking forward to learn from your experience.

I am facing another issue with Gorilla and DesignTimeData.json #451