Page 1 of 2
Sparklines
Posted: Sat 17 Feb 2018 1:05 pm
by jdc
I know this has been done before but.....
I have been in conversation with several people regarding 'Sparklines' recently. I have been using them for quite a few years with phpwebtags and decided to simplify my scripts and make them available.
The main proviso is I am not a skilled scripter and I'm sure there are better/more efficient ways to produce the same end result.
I do not know if commas as decimal marks will work.
This method uses php webtags - a basic set supplied.
Limited customisation - colour, size, parameters.
I have tried to 'keep it simple' so it should be straightforward to get sparklines up and running on your site.
Just read the README first!
Re: Sparklines
Posted: Sat 17 Feb 2018 11:24 pm
by beteljuice
Welcome to the dark side John
Re: Sparklines
Posted: Sat 17 Feb 2018 11:43 pm
by dazza1223
yep john got them all working on my test page
http://www.davisworthing.co.uk/new/one.php
Re: Sparklines
Posted: Sun 18 Feb 2018 10:02 am
by jdc
Welcome to the dark side John
Thank you, Emperor.
yep john got them all working on my test page
Great! I see you've added more parameters too.
Re: Sparklines
Posted: Sun 18 Feb 2018 10:57 am
by dazza1223
yh i done all off them mate do u want me to zip it back up and send it to u as it took a long time to add all of them ?
Re: Sparklines
Posted: Mon 19 Feb 2018 10:59 am
by jdc
That would be good - thanks.
I will leave the 'basic' settings and have your extras as an add-on.
Re: Sparklines
Posted: Mon 19 Feb 2018 11:18 am
by dazza1223
here you go jdc
Re: Sparklines
Posted: Thu 22 Feb 2018 3:48 pm
by mitmania
Hello everyone, I use Cumulus 1.9 and I would like to integrate these fantastic graphics on my home page. I can not find the file cuumuluswebtags.txt .... where am I wrong?
Thank you!
Re: Sparklines
Posted: Thu 22 Feb 2018 3:58 pm
by dazza1223
sorry mate it there but in php formate but here is the txt file aswell
Re: Sparklines
Posted: Thu 22 Feb 2018 4:16 pm
by jdc
You don't need a full cumuluswebtags.txt there is sparklines_tags.txt in the zipped file purely for Sparklines.
The Readme explains how to use it with Cumulus.
Re: Sparklines
Posted: Thu 22 Feb 2018 4:23 pm
by dazza1223
yh John i think he downloaded my zip up one and my one was cuumuluswebtags.php not
cuumuluswebtags.txt
Re: Sparklines
Posted: Thu 22 Feb 2018 8:32 pm
by mitmania
Hi, unfortunately I can not configure this script .... are not clear the steps below taken from the file readme.txt, especially the second point where I would like to use the file 'sparkline_tags.txt
1) If you are already using cumuluswebtags add the contents of sparkline_tags.txt to your cumuluswebtags.txt file.
2) If you have no existing webtags file, Save 'sparkline_tags.txt' and have Cumulus Process and Upload as sparkline_tags.php
In spark.php change the path to your webtags file.
FOR EXAMPLE:
include("/sparkline_tags.php");
OR
include($_SERVER["DOCUMENT_ROOT"] . "/cumulus/cumuluswebtags.php");
Re: Sparklines
Posted: Thu 22 Feb 2018 8:38 pm
by dazza1223
send me ur cuumulus location
in ur php /html put
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="sparkline.min.js"></script>
<script type="text/javascript" src="spark.php"></script>
then where u want to put the graphics
<span class="temp"></span></td>
and so on
ps if it help look at mine
http://www.davisworthing.co.uk/new/one.php
Re: Sparklines
Posted: Thu 22 Feb 2018 8:49 pm
by mitmania
hen this part of the modification of the index.htm file is clear to me ... it's the part of the configuration I do not understand
Re: Sparklines
Posted: Thu 22 Feb 2018 8:54 pm
by dazza1223
so u put cuumuluswebtagsT.txt in the cuumulus web folder this in cuumulus go to Extra web files
PROCESS cuumuluswebtagsT.txt REMOTE FILENAME cumuluswebtags.php