Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The first step is to define a class ChartJapaneseSettings that inherits from ChartGlobalizationSettings.
Then, by overriding the related functions, you can set the text of the chart elements in your own language.
Code example:
In this step, you will use the class ChartJapaneseSettings that you defined in the previous step.
Code example:
Workbook wb = new Workbook("Japanese.xls");
wb.Settings.GlobalizationSettings.ChartSettings = new ChartJapaneseSettings();
Chart chart0 = wb.Worksheets[0].Charts[0];
chart0.ToImage("Output.png");
Then you can see the effect in the output image: the elements in the chart are rendered according to your settings.
If you do not set the Japanese region for a chart, the chart elements may be rendered in the default language (e.g., English).
After performing the above steps, you can obtain an output chart image with the Japanese region applied.
| Supported elements | Value in this example | Default value in the English environment |
|---|---|---|
| Axis Title Name | 軸タイトル | Axis Title |
| Axis Unit Name | 百,千… | Hundreds, Thousands… |
| Chart Title Name | グラフ タイトル | Chart Title |
| Legend Increase Name | ぞうか | Increase |
| Legend Decrease Name | 削減 | Decrease |
| Legend Total Name | すべての | Total |
| Other Name | その他 | Other |
| Series Name | シリーズ | Series |
|
|
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.