| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/framework7/node_modules/framework7/components/area-chart/ |
Upload File : |
import $ from '../../shared/dom7.js';
import AreaChart from './area-chart-class.js';
import ConstructorMethods from '../../shared/constructor-methods.js';
export default {
name: 'areaChart',
params: {
areaChart: {
el: null,
lineChart: false,
datasets: [],
axis: false,
axisLabels: [],
tooltip: false,
legend: false,
toggleDatasets: false,
width: 640,
height: 320,
maxAxisLabels: 8,
formatAxisLabel: null,
formatLegendLabel: null,
formatTooltip: null,
formatTooltipAxisLabel: null,
formatTooltipTotal: null,
formatTooltipDataset: null
}
},
create() {
const app = this;
app.areaChart = ConstructorMethods({
defaultSelector: '.area-chart',
constructor: AreaChart,
app,
domProp: 'f7AreaChart'
});
app.areaChart.update = function update(el, newParams) {
const $el = $(el);
if ($el.length === 0) return undefined;
const areaChart = app.areaChart.get(el);
if (!areaChart) return undefined;
areaChart.update(newParams);
return areaChart;
};
}
};