2017-03-09, 04:16 PM
Regular Expression *
Replacement *
Sample usage
[chart]service,ammount,service,ammount,service,ammount,service,ammount,service,ammount,pie chartname[/chart]
\[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]