@@ -9,7 +9,6 @@ import highlightSql from './sql-highlight.js';
99import { ajaxRemoveMessage , ajaxShowMessage } from './ajax-message.js' ;
1010import handleCreateViewModal from './functions/handleCreateViewModal.js' ;
1111
12- /* global ChartType, ColumnType, DataTable, JQPlotChartFactory */ // js/chart.js
1312/* global DatabaseStructure */ // js/database/structure.js
1413/* global firstDayOfCalendar, maxInputVars, themeImagePath */ // templates/javascript/variables.twig
1514
@@ -1591,76 +1590,6 @@ Functions.showWarningForIntTypes = function () {
15911590 }
15921591} ;
15931592
1594- /**
1595- * Creates a Profiling Chart. Used in sql.js
1596- * and in server/status/monitor.js
1597- *
1598- * @param target
1599- * @param data
1600- *
1601- * @return {object }
1602- */
1603- Functions . createProfilingChart = function ( target , data ) {
1604- // create the chart
1605- var factory = new JQPlotChartFactory ( ) ;
1606- var chart = factory . createChart ( ChartType . PIE , target ) ;
1607-
1608- // create the data table and add columns
1609- var dataTable = new DataTable ( ) ;
1610- dataTable . addColumn ( ColumnType . STRING , '' ) ;
1611- dataTable . addColumn ( ColumnType . NUMBER , '' ) ;
1612- dataTable . setData ( data ) ;
1613-
1614- var windowWidth = $ ( window ) . width ( ) ;
1615- var location = 's' ;
1616- if ( windowWidth > 768 ) {
1617- location = 'se' ;
1618- }
1619-
1620- // draw the chart and return the chart object
1621- chart . draw ( dataTable , {
1622- seriesDefaults : {
1623- rendererOptions : {
1624- showDataLabels : true
1625- }
1626- } ,
1627- highlighter : {
1628- tooltipLocation : 'se' ,
1629- sizeAdjust : 0 ,
1630- tooltipAxes : 'pieref' ,
1631- formatString : '%s, %.9Ps'
1632- } ,
1633- legend : {
1634- show : true ,
1635- location : location ,
1636- rendererOptions : {
1637- numberColumns : 2
1638- }
1639- } ,
1640- // from https://web.archive.org/web/20190321233412/http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines
1641- seriesColors : [
1642- '#fce94f' ,
1643- '#fcaf3e' ,
1644- '#e9b96e' ,
1645- '#8ae234' ,
1646- '#729fcf' ,
1647- '#ad7fa8' ,
1648- '#ef2929' ,
1649- '#888a85' ,
1650- '#c4a000' ,
1651- '#ce5c00' ,
1652- '#8f5902' ,
1653- '#4e9a06' ,
1654- '#204a87' ,
1655- '#5c3566' ,
1656- '#a40000' ,
1657- '#babdb6' ,
1658- '#2e3436'
1659- ]
1660- } ) ;
1661- return chart ;
1662- } ;
1663-
16641593/**
16651594 * Formats a profiling duration nicely (in us and ms time).
16661595 * Used in server/status/monitor.js
0 commit comments