I was attempting to get data from a field in a custom doctype and put it on a chart (one way or the other). If I pick this custom doctype for Document Type as a dashboard chart and also choose average as Chart Type, then the Value Based On doesn’t see any of the fields from the custom doctype…that is, the drop-down is unpopulated.
Also, If I try to make a custom Chart Type, then of course it wants a chart source - right? So, I make a new chartsource and set that. As soon as I save it, it throws an error dialog telling me that the newChartSource.js file is missing.
I’m confused about what the chart source is supposed to do as it merely seems to point to a module.
The field to be chosen inside Value Based On has to be of type ‘Int’, ‘Float’, ‘Currency’ or ‘Percent’. Are you sure that your Custom DocType has at least one of these?
That must be the problem. I don’t have any of those data types in the custom doctype. I’d love to correct it and test but my ability to edit doctypes has suddenly become broken and I get the same error as reported here.
what about just incorporating another awesome open source project http://redash.io? It does all the things with dashboards layouts etc. I integrated into our own home grown reporting engine, and now we usually do it all in redash and publish - It is going through a rewrite for python3/ rq at the moment tho.