Chart Components October 26, 2018, 01:46:04 AM PHPRad Chart ComponentsPHPRad use ChartJS Plugin at its default chart plugin. Learn more about ChartJS https://www.chartjs.orgUsed to represent data graphically on a page; Allows you to add charts to a page. There are various types of chat available to us, which are: Bar Chart, Pie Chart, Line Chart, PolarArea Chat, Doughnut Chart, and Radar Chart.Adding Chart to a page.Simply double click or drag and drop any chart component on your page.Setting Chart Data Sources (Datasets)Setting Chart datasets designSetting Chart options1 After setting the datasets, set the LabelField and ValueField to the corresponding fields name based on the dataset queryChart Output Quote Selected Last Edit: November 02, 2018, 02:02:46 PM by Emman
Re: Chart Components Reply #1 – January 18, 2019, 08:45:08 AM Where can i find the controller of the chart? Quote Selected
Re: Chart Components Reply #2 – January 18, 2019, 09:30:50 AM Hi clarenceeda,Because the chart component can be used on different pages, the controller is on the SharedController.php File if you are using PHPRad classic. or ComponentController.php if you are using PHPRad VueRegards. Quote Selected
Re: Chart Components Reply #3 – January 19, 2019, 02:33:40 AM Thank you for you reply. and now. For example, by default i have a table named 'Products' which makeshttp://localhost/myshop/#/productsThis product page have a pie chart with the dataset "select brand as label, count(*) as value from products"Now, how can I make the pie dynamic if the products have category, i.e we have this page belowhttp://localhost/myshop/#/products/list/category/mobileandhttp://localhost/myshop/#/products/list/category/tabletI want dynamic dataset of the Pie like using the ff sql below"select brand as label, count(*) as value from products where category = 'mobile' ".How do i do that? and again, thanks. Quote Selected
Re: Chart Components Reply #4 – January 19, 2019, 02:35:06 AM Im using php vuerad trial version Quote Selected
Re: Chart Components Reply #5 – July 28, 2019, 05:04:03 PM in the classic version the "RandomDifferentColor" does not work in the vuej version it works correctly. Quote Selected