zoukankan      html  css  js  c++  java
  • FusionChart2

    var MultiTimeChartAttrs = {

    reqUrl: 'ListVisitChar',

    reqData: "",

    chartId: 'multiTimeChartId',

    chartDivId: 'multiTimeChart',

    chartUri: './../Content/charts/data/MSStackedColumn2DLineDY.swf',

    chartInfo: '暂无系统访问量数据',

    '900',

    height: '450',

    isDebug: '0',

    isRegister: '0',

    isLoaded: false

    }

    /*获取需要传递到服务器的参数*/

    function getParams() {

    var params = { startDate: '', endDate: '', timeTypeSelect: '' };

    params.startDate = $("#startDate").val();

    params.endDate = $("#endDate").val();

    params.timeTypeSelect = $("#timeTypeSelect").val();

    return params;

    }

    function query() {

    var params = getParams();

    MultiTimeChartAttrs.reqData = "startDate=" + params.startDate + "&endDate=" + params.endDate + "&timeTypeSelect=" + params.timeTypeSelect ;

    queryChartData(MultiTimeChartAttrs);

    }

    /*定义统一的图表数据请求方法*/

    function queryChartData(chartAttr) {

    $("#" + chartAttr.chartDivId).hide().next().show();

    $.ajax({

    url: chartAttr.reqUrl,

    data: chartAttr.reqData,

    type: "POST",

    dataType: "text",

    success: function(jdata, stat) {

    if (jdata.toString() == "") {

    jdata = "<chart></chart>";

    }

    $("#" + chartAttr.chartDivId).show().next().hide();

    var chart = new FusionCharts(chartAttr.chartUri + "?ChartNoDataText=" + chartAttr.chartInfo, chartAttr.chartId, chartAttr.width, chartAttr.height, chartAttr.isDebug,

    chartAttr.isRegister);

    chart.setTransparent(true);//此项会影响IE7中右键功能

    chart.setDataXML(jdata.toString());

    chart.render(chartAttr.chartDivId);

    }

    });

    }

  • 相关阅读:
    出差兰州
    出差乌鲁木齐(3)
    依赖倒置原则
    .NET 打印界面
    出差乌鲁木齐2
    出差乌鲁木齐(2)
    出差乌鲁木齐3
    IStyleGallery.AddItem、UpdateItem、RemoveItem用法
    Shapefile记录检索
    c#利用最小二乘法拟合任意次函数曲线(转)
  • 原文地址:https://www.cnblogs.com/cw_volcano/p/2316269.html
Copyright © 2011-2022 走看看