Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Pie Chart [MyCode]
#1
Regular Expression *

\[chart\](.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?)\[/chart\]

Replacement *
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script><script type="text/javascript">function drawChart(){var a=google.visualization.arrayToDataTable([["Task","Hours per Day"],["$1",$2],["$3",$4],["$5",$6],["$7",$8],["$9",$10]]),b={title:"$11"},c=new google.visualization.PieChart(document.getElementById("piechart"));c.draw(a,b)}google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback(drawChart);</script>
<div id="piechart" style="width: 900px; height: 500px;"></div>

Sample usage

[chart]ftp,1,ssh,2,telnet,3,mysql,4,http,5,Scan results[/chart]


[chart]service,ammount,service,ammount,service,ammount,service,ammount,service,ammount,pie chartname[/chart]

[Image: V7Vi2tP.png]

[Image: VhlA4qj.png]
Reply
#2
How to change background color? i want to make auto for many theme... not white
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)