Now lets have a look at the code required to generate the above CFCharts.
<cfchart format=”png” name=”mychart” title=”Fruits Harvest” showlegend=”true”>
<cfchartdata item=”Mangoes Harvest” value=”5000″/>
<cfchartdata item=”Oranges Harvest” value=”4000″/>
<cfchartdata item=”Apples Harvest” value=”3000″/>
<cfchartdata item=”Grapes Harvest” value=”2000”/>
The result of a query may directly be converted to a chart by using the code below. Coldfusion will generate the chart data items on its own from the query
<cfchartseries type=”bar” query=”data” itemcolumn=”name” valuecolumn=”sales”/>
The type attribute of Cfchartseries is the most important among the list. It lets you choose from a wide array of chart types such as bar, line, pyramid, area, horizontalbar, cone, curve, cylinder, step, scatter and pie.
But what really takes the pie is the amount of styling options Coldfusion gives to the developers. Instead of setting each of the attributes, I found an easy way of doing this by modifying the built in style files in the folder cf_root\charting\styles and saving them under a new name to access. The style files are simple XML files and modifying them is really easy. One of the coolest attributes was the “show3D” attribute, which gives the chart a 3D effect. The appearance maybe modified to such extents that people will have a hard time figuring out it is custom generated and not designed by a web designer specifically.
IoT mobile apps, the next big thing for current COVID-19 and future pandemics [Ultimate Guide]
In times where technology is a part of our everyday routine, the extension of its features to everyday devices is a peek into a futuristic world. For instance, when the pandemic struck, the need for remote monitoring was on the rise, more than ever. Gathering resources and medicines, consultation with doctors, monitoring of beds had […]
Healthcare mobile app development for organizations to address the disruption caused by the pandemic
In an increasingly convenient world where groceries, food, clothes are available at the click of a button, it was the healthcare sector that quite remained rooted to its traditional ways. However, since the onset of the pandemic, social distancing and other preventive measures, the usage of healthcare apps has seen a significant boost. Patients and […]
Mobile application Development Trends in 2021 in the Post-Pandemic Environment
The COVID-19 pandemic has exponentially triggered a big-time financial crisis, hurting practically all domains of life, including travel & tourism, real estate, leisure activities, small local businesses, and the quality of life of every being. However, the crisis has given birth to the vital need for digital solutions and developments that would help people face […]