Il testo n.0 su chartjs non mi funziona. L'url è questo
http://localhost:8080/test15/chart/chartjs/0
Qui sotto la correzione (credo.. ma sembra andare)
git diff chartjs.py
diff --git a/projects/gnrcore/packages/test15/webpages/chart/chartjs.py
b/projects/gnrcore/packages/test15/webpages/chart/chartjs.py
index bef9ff8..c766685 100644
--- a/projects/gnrcore/packages/test15/webpages/chart/chartjs.py
+++ b/projects/gnrcore/packages/test15/webpages/chart/chartjs.py
@@ -13,8 +13,7 @@ class GnrCustomWebPage(object):
return False
def test_0_simple(self, pane):
pane.chartjs(nodeId='testchart_0',chartType='bar',data={
- 'ylabels': ["yRed", "yBlue", "yYellow", "yGreen",
"yPurple", "yOrange"],
- 'xLabels': ["xRed", "xBlue", "xYellow", "xGreen",
"xPurple", "xOrange"],
+ 'labels': ["Red", "Blue", "Yellow", "Green", "Purple",
"Orange"],
'datasets': [{
'label': '# of Votes',
'data': [12, 19, 3, 5, 2, 3],
Sto cercando di passargli una path al posto dell'attributo "data";
l'obiettivo è quello veder il grafico che cambia in base al contenuto
dello store.
Ale