sample examples
Are there any example code from coldfusion, it used to come with it.
just looking for some sample+code for new features….
Sure, Gary. There is more than one site with examples of charts that cfchart can create. It’s not clear if you you mean JUST examples of the charts that can be built, or also the code to do it.
First, the CFML Reference page on CFCHART itself does have both examples of various charts and their code, starting on the part of the page here: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfchart.html#Creatingabasicchart , which is followed by several different chart types (showing the chart and code).
Second, there’s another page showing many examples of charts CF can make (but only showing the chart examples, not code): https://www.quackit.com/coldfusion/tutorial/cfchart_examples.cfm
Hope that gets you going.
And if you (or anyone else reading along) may want to create a more complete example, showing every chart type, that would be great. You could even create the examples for free, without need of hosting them, on Adobe’s cffiddle.org site. And if you log in there, you can then save and share the links, either in a comment here, or better still a new blog post (here, or elsewhere). HTH.
ColdFusion no longer comes with samples (since CF7), as it was deemed unsafe/insecure.
But there are many places that have examples, some of which you can even run interactively:
- the CF docs. Many pages in the CFML Reference not only offer examples (for many, but not all tags/functions), but many then also offer links to run the code directly and live on the cffiddle.org site. An example is here.
- the cfdocs.org site also offers examples for many (though not all) tags/functions, and they also offer have links to run the code live on the trycf.com site. An example is here.
- there are still other sites that could help you, but rather than list them all, let me point you to a few categories of my cf411.com site (of tools and resources for CFers) where I DO point to them:
- https://www.cf411.com/dochelp
- https://www.cf411.com/cffiddles
- https://www.cf411.com/cfres
- And you may find value in several other of the dozens of categories, listed at the top of the page
Finally, someone may well offer some other specific link to some favored site for examples. If I don’t list it/them already on my cf411 site, I would happily add them.
Let us know if this gets you going.
You must be logged in to post a comment.