Alimentar graficas con base de datos

21 Dec '17, 02:00 AM
No Forum Badges

Hola, tengo un problema, en un view component inserte codigo javascript de graficas y medidores, actualmente solo pueden llenarse dichas graficas con datos predefinidos, mi consulta es la siguiente:

¿Còmo puedo logras que mis graficas y medidores obtengan informaciòn de la base de datos del proyecto?

No he podido encontrar la forma de pasar los parametros que necesito. 

Espero me puedan ayudar y desde ya gracias.

x 0
Answer Answer at this question and get points!
Forum Hero - Level 9

Hola Pedro,

     Lo que necesitas hacer es crear un template personalizado por ejemplo si tu vas a tener datos como

     Manzanas 5

     Peras        3

     Piñas        1

    puedes usar un multiple details o un simple list para obtener la información desde la base por lo que necesitas crear un template personalizado para dicho componente donde agregarás el código necesario para aplicar la funcionalidad de javascript y mostrar el gráfico.

     Espero te ayude.

x 0
No Forum Badges

Puedes utilizar un componente multidetails modificando su template usando c3, asi solo harás la consulta desde el componente 

x 0
Answer at this question and get points!

Related questions

2 grids inside one/same cell result in non-selectable 2nd grid 502 proxy error-generate and run Access page variable in a page template add html Adding and deleting from the database Agregar boton de cambio de contraseña en el login Ajax is not working in own style project Ajax web app with javascript history object using the WebRatio Alternate way to get current User Oid in layout template groovy script? Any way to localize the Tab Grid Template (Webratio Store)? Applicare un template ad un Web Project Atributos Condicionales heredados Attribute comparison in a selector unit Ayuda Simple List Component Layout personalizado [beginner] - How to store and browse data collected with BPM app? Bootstrap Style Business object data Button to go on another page Cambiare dimensioni bottoni - Change button size Cancellare campi e tabelle dal database Can I inject html into custom unit template?! Cannot add a Database in the Domain Model Cannot connect to MySQL Cannot insert an entity in the database Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! Change color template bootstrap style Change Style Change uplod directory and protect anauthorized access to files Changing the login page does not work ckeditor - change directory for the browser Colore Attributi index unit Dinamico - Index unit dynamic attribute color Como abrir una ventana en ajax desde una master page Como embeber un video subido desde archivo ? Como mostrar una imagen de portada arriba del menu? Como mostrar una imagen en una lista o en la componente detalles? Como recuperar todos los atributos de una relacion N:N y insertar registros? Conexion a Oracle 12g Confirm Dialog Connection refused. connect to Cloud Convert data in a Calculated attribute Convert selector component result to single value Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database Customize layout mobile platform Custom Tooltip Position Database connection, Host and Port number Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy DB in Data Service Project Default error pages default login page Deploy in Cloud Amazon Beanstalk with Postgres Display contents of a URL Dynamic data type Dynamic link labelling for Custom Unit Empty record mistakenly saved Error in Error updating metadata process EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Excel Unit - Font size Execute truncate sql query Export to a HTML/CSS/JS project Field as link soruce file analysis then update MySQL database File CSS non considerato in generazione Find Model Problemas Foriegn key relationship Form element Form template Generate and run locally on webratio professional edition. Get date pattern Get home page from template getting data from database Google map is not shown properly in the tab grid Groovy and Database Guardar Saltos de LINEA HelloWorld Unit sample code Hide a form if condition if true Hiding landmarks (or flows) when the user is logged in How can i create pagemenu or landmarkmenu with multiple levels. How can I import a view in the Domain Model as an attribute of an Entity? How can I modified the htmls files to perform my style How database or datamodel migration? How I can receive the primary key value after adding into database from OK Port. How to add an image in a modal/pop-up window? How to block empty string in Database How to disble derby database? How to fix Network error(status 0) How to include a template into other template? How to localize AJAX waiting dialog? How to localize the multi message unit in the notification layout How to modify template? How to modify the FertileEnviroment Default page How to remove default Linked Resources? How to show certain values derived from relations in the domain model? How to use LandmarkMenu as AJAX navigation how to use the landmark menu as AJAX navigation I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Insert data into database integrate framework to webratio mobile Integrazione javascript Is it possible to create a derived relationship between databases? Javascript and html javascript history object JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly Localize "Welcome..." and "Process details" logo webratio Mapping database of the entity '...' is unspecified meaning of each tag in the XML code (Show XML/Show Layout XML) [MOBILE] Can't synchronize domain model with beck end DB modify field html Modify html generated by wr:NavigationBar Mostrar datos de diferentes tablas/ show dates from diferentes entities MS SQL server jdbc file multi selections field problem MySQL Driver jdbc No Apache Derby driver found No Database on Cloud account No database on my cloud account Pages Problem After Project Generation Passing JSON Object to Model pass template variable Personalizzare lo stile di un progetto PostgreSQL Predefined values in database Problem accessing MySQL with WebRatio 6 Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem Login Form only if user not logged Problem print Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Database Metadata Problems with the page refresh (Tab Grid) Problem with adding templates Problem with fields with accents used in attribute condition Problem with query unit! Problem with stored procedure Problem with the deletion of more than 50.000 records in a table publish web service for storing information in PostgreSQL DB following XSD Resource query a database query unit who to hide fields that are used in a link Recursive Hierarchical Index Unit Style Tree Redirect to the default module Refresh and Synchronize DB Problems Relaciones Remove default BPM css import for all templates Removing the User-Group-Module tagles Responsive Bootstrap Grid Responsive Layout Manager Retrieve a value and add some value to it reverse engineering, problema con le relazioni di default Script Unit e Mysql Set context parameter Share database connection Simple Static Page Solve "Generation Error" with Generate and Run option Standard confirm dialog replacement Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Style hierarchical unit help!! Supoort for Mobile and Desktop display Sybase JConnect 4 JAR replace Sync DataService Project with Mobile Project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Target tabs in Tab Grid Control Tooltip on a field Too much layout parameters = no scroll in parameters config window Trying to Synchronize Domain Model Unable to execute the script java.lang.NullPointerException Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value upload file and the move it to other location Uppercase Use image as interaction flow User Login Timestamp Username come chiave Using own User and Group tables Vista de diferentes Site Views Webratio Add-ons no permite login Web ratio data model WebRatio - list results of joined tables Web Ratio Mobile and Foreign Key Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table Where is the ACME demo data stored?! White report wr-ajaxDivs break layout on ajax pages.