3D图表Highcharts(3D)


用javascript编写的各类图表,包含3D特效图表,非常精致。
资源截图
代码片段和文件信息
/**
 * @license Highcharts JS v2.3.3 (2012-11-02)
 *
 * (c) 20012-2014
 *
 * Author: Gert Vaartjes
 *
 * License: www.highcharts.com/license
 */
package com.highcharts.export.converter;

import java.io.File;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeoutException;

import org.apache.commons.io.FileUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.gson.Gson;
import com.highcharts.export.pool.PoolException;
import com.highcharts.export.pool.BlockingQueuePool;
import com.highcharts.export.server.Server;
import com.highcharts.export.util.MimeType;

@Service(“svgConverter“)
public class SVGConverter {

@Autowired
private BlockingQueuePool serverPool;
protected static Logger logger = Logger.getLogger(“converter“);
private static final String SVG_DOCTYPE = “l version=“1.0“ standalone=“no“?>“;

public String convert(String input MimeType mime
String constructor String callback String globalOptions Float width Float scale String filename) throws SVGConverterException PoolException NoSuchElementException TimeoutException {
return this.convert(input globalOptions null null mime constructor callback width scale filename);
}

public String convert(String input String globalOptions String dataOptions String customCode MimeType mime
String constructor String callback Float width Float scale String filename) throws SVGConverterException PoolException NoSuchElementException TimeoutException {

Map params = new HashMap();
Gson gson = new Gson();

if (filename != null) {
params.put(“outfile“ filename);
} else {
params.put(“type“ mime.name().toLowerCase());
}

params.put(“infile“ input);

if (constructor != null && !constructor.isEmpty()) {
params.put(“constr“ constructor);
}

if (callback != null && !callback.isEmpty()) {
params.put(“callback“ callback);
}

if (globalOptions != null && !globalOptions.isEmpty()) {
params.put(“globaloptions“ globalOptions);
}

if (dataOptions != null && !dataOptions.isEmpty()) {
params.put(“dataoptions“ dataOptions);
}

if (customCode != null && !customCode.isEmpty()) {
params.put(“customcode“ customCode);
}

if (width != null) {
params.put(“width“ String.valueOf(width));
}

if (scale != null) {
params.put(“scale“ String.valueOf(scale));
}

// parameters to JSON
String json = gson.toJson(params);

// send to phantomJs
String output = ““;
output = requestServer(json);

// check first for errors
if (output.length() > 5 && output.substring(05).equalsIgnoreCase(“error“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......      2290  2014-09-02 11:24  Highchartsexamples3d-column-interactiveindex.htm

    .......      1483  2014-09-02 11:24  Highchartsexamples3d-column-null-valuesindex.htm

    .......      2133  2014-09-02 11:24  Highchartsexamples3d-column-stacking-groupingindex.htm

    .......      1787  2014-09-02 11:24  Highchartsexamples3d-pieindex.htm

    .......      1488  2014-09-02 11:24  Highchartsexamples3d-pie-donutindex.htm

    .......      4707  2014-09-02 11:24  Highchartsexamples3d-scatter-draggableindex.htm

    .......      3170  2014-09-02 11:24  Highchartsexamplesarea-basicindex.htm

    .......      2097  2014-09-02 11:24  Highchartsexamplesarea-invertedindex.htm

    .......      2207  2014-09-02 11:24  Highchartsexamplesarea-missingindex.htm

    .......      1159  2014-09-02 11:24  Highchartsexamplesarea-negativeindex.htm

    .......      2180  2014-09-02 11:24  Highchartsexamplesarea-stackedindex.htm

    .......      2171  2014-09-02 11:24  Highchartsexamplesarea-stacked-percentindex.htm

    .......      1497  2014-09-02 11:24  Highchartsexamplesarearangeindex.htm

    .......      3999  2014-09-02 11:24  Highchartsexamplesarearange-lineindex.htm

    .......      2051  2014-09-02 11:24  Highchartsexamplesareasplineindex.htm

    .......      2152  2014-09-02 11:24  Highchartsexamplesar-basicindex.htm

    .......      3047  2014-09-02 11:24  Highchartsexamplesar-negative-stackindex.htm

    .......      1394  2014-09-02 11:24  Highchartsexamplesar-stackedindex.htm

    .......      2477  2014-09-02 11:24  Highchartsexamplesox-plotindex.htm

    .......      1374  2014-09-02 11:24  Highchartsexamplesubbleindex.htm

    .......      2672  2014-09-02 11:24  Highchartsexamplesubble-3dindex.htm

    .......      2369  2014-09-02 11:24  Highchartsexamplescolumn-basicindex.htm

    .......      5383  2014-09-02 11:24  Highchartsexamplescolumn-drilldownindex.htm

    .......      1163  2014-09-02 11:24  Highchartsexamplescolumn-negativeindex.htm

    .......      1693  2014-09-02 11:24  Highchartsexamplescolumn-parsedindex.htm

    .......      2462  2014-09-02 11:24  Highchartsexamplescolumn-placementindex.htm

    .......      2646  2014-09-02 11:24  Highchartsexamplescolumn-rotated-labelsindex.htm

    .......      2456  2014-09-02 11:24  Highchartsexamplescolumn-stackedindex.htm

    .......      1822  2014-09-02 11:24  Highchartsexamplescolumn-stacked-and-groupedindex.htm

    .......      1515  2014-09-02 11:24  Highchartsexamplescolumn-stacked-percentindex.htm

............此处省略484个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)