最近遇到了这个问题,希望大家给点帮助,共同学习,谢谢!问题:OFC生成的图表(折线举例)x、y轴值不支持中文显示,通过修改指定字体
第一处:open_flash_chart/elements/axis/XAxisLabels.as  [Embed(systemFont = 'Arial', fontName = 'spArial', mimeType = 'application/x-font')] 
第二处:open_flash_chart/elements/labels/YLegendBase.as    [Embed(systemFont = 'Arial', fontName = 'spArial', mimeType = 'application/x-font')] 
修改为中文:[Embed(source = '/whyj/open-flash-chart-2/open-flash-chart/simsun.ttc', fontFamily = 'simSun', fontName='_simSun')]还是没得到解决。

解决方案 »

  1.   

    帮你顶下
    是编码的问题还是本身不支持,你也可以尝试其他的,  fusioncharts这个就不错
      

  2.   

    Just recommand that you can use the Fusion Chart in your project.http://scriptlover.com
      

  3.   

    支持吧。我在X,Y,还有标题都有中文。它会在后台编码{
    "title": 
    {
    "text": "(bsj0519)2011-7-4 14:43:24\u52302011-7-4 14:45:24\u6CB9\u91CF\u56FE\u8868",
    "style": "{font-size: 20px; color: #800000}"
    },
    "x_axis": 
    {
    "labels": 
    {
    "labels": 
    [
    "07-04 14:43",
    "07-04 14:43",
    "07-04 14:43",
    "07-04 14:43",
    "07-04 14:44",
    "07-04 14:44",
    "07-04 14:44",
    "07-04 14:44",
    "07-04 14:44",
    "07-04 14:44",
    "07-04 14:45",
    "07-04 14:45",
    "07-04 14:45"
    ],
    "rotate": "vertical",
    "visible-steps": 1
    },
    "steps": 1,
    "3d": 0,
    "offset": true
    },
    "y_axis": 
    {
    "tick-length": 0,
    "labels": 
    {},
    "steps": 64,
    "min": 0,
    "max": 320,
    "3d": 0,
    "offset": true
    },
    "elements": 
    [
    {
    "width": 1,
    "dot-size": 0,
    "halo-size": 0,
    "loop": false,
    "on-show": 
    {},
    "colour": "#456f3",
    "values": 
    [
    300,
    282,
    282,
    290,
    290,
    290,
    290,
    290,
    300,
    300,
    300,
    308,
    308
    ],
    "text": "\u6CB9\u91CF\u503C(\u5347)",
    "fill-alpha": 0.35,
    "type": "line",
    "dot-style": 
    {
    "on-show": 
    {},
    "type": "hollow-dot",
    "hollow": true,
    "width": 3,
    "tip": "\u65F6\u95F4\uFF1A#x_label#\u003Cbr>\u6CB9\u91CF\uFF1A#val#\u5347",
    "colour": "#456f3",
    "dot-size": 0
    }
    },
    {
    "OilWear": 0.00,
    "TotalMileage": 0.43,
    "ProjectionHKMOil": 50,
    "FactOil": "0.00",
    "colour": "#CC3399",
    "values": 
    [],
    "fill-alpha": 0.35,
    "dot-style": 
    {
    "on-show": 
    {}
    }
    }
    ],
    "x_legend": 
    {
    "text": "\u65E5\u671F \u65F6\u95F4",
    "style": "{font-size: 12px; color: #FF0000}"
    }
    }
      

  4.   

    OFC是我们统一用的不好改用fusioncharts 。
    TO:pj100我换成ASCII码,也不行阿。
      

  5.   

    6楼,y_legend 下的 text 你的能显示中文?