-------------------------------------------------------------------------------------------------------- -----------------------------------------------------
-- 2D Surface Chart
--
-- Notes: The query below will work on the following database servers:
-- MS SQL Server, Sybase ASE, Sybase IQ, Sybase Anywhere, MySQL, PostreSQL
--
-- ORACLE: To make the query below work in Oracle, add " FROM DUAL" at the end of each SELECT
-- DB2: To make the query below work in DB2, add " FROM SYSIBM.SYSDUMMY1" at the end of each SELECT
-------------------------------------------------------------------------------------------------------- -----------------------------------------------------
select 1 as category, 25 as s1, 45 as s2
union
select 2 as category, 10 as s1, -25 as s2
union
select 3 as category, 40 as s1, -5 as s2
union
select 4 as category, 70 as s1, 15 as s2
union
select 5 as category, 65 as s1, 50 as s2
union
select 6 as category, 40 as s1, -25 as s2
union
select 7 as category, 33 as s1, 23 as s2
union
select 8 as category, 95 as s1, 4 as s2
union
select 9 as category, 10 as s1, 12 as s2
union
select 10 as category, 70 as s1, 55 as s2
GO
.setResultSettings 'Index=1,
CategoryFields="[category] ASC",
SeriesFields="[s1],[s2]",
ShowChart=true,
ShowToolbar=true,
Paging=true,
Split=0,
Chart="{surface,surface}",
RotX=324,
RotY=0,
RotZ=0,
ZoomScalar=1.2025924,
ShowLegend=true,
ShowLegendBorder=true,
ShowGrid=true,
FillGrid=true,
GridLineWidth=1.0,
Title="2D Surface Chart",
TitlePosition="Bottom Center",
TitleCategory="",
TitleValue="",
PieExplode=0.0,
GroupSmallValues=true,
SmallValuesThreshold=3.0,
PieLabelDistance=3.0,
PieShowLines=false,
LineWidth=1.0,
ShowMarkers=true,
MapShowBackground=false,
MapShowDetails=false,
MapRange="",
MapRangeColors="",
Width=16.0,
Height=10.0,
Depth=6.0,
SeriesSpacing=1.0,
CategorySpacing=1.0,
Font=Arial-6,
LegendFontSize=1.0,
SeriesFontSize=1.0,
CategoryFontSize=1.0,
ValueFontSize=1.0,
TitleFontSize=1.75,
AxisTitleFontSize=1.25,
DataLabelFontSize=1.0,
TopColor=#D7DCF5,
BottomColor=#EBF0F5,
PanX=-293.5,
PanY=-160.7,
Lighting=Bright,
Opacity=1.0,
View2D=true,
FitChartToImage=false,
StackedPercent=false,
ShowValueAxis=true,
ShowValueAxisTicks=true,
ShowValueAxisLines=true,
ReverseValueAxis=false,
ShowCategoryAxis=true,
ShowCategoryAxisTicks=true,
ShowCategoryAxisLines=true,
ShowSeriesAxis=false,
ShowDataLabels=false,
ValueAxisNumberFormat="###0",
CategoryAxisNumberFormat="#,##0",
CategoryAxisDateFormat="",
CategoryAxisDateTimeFormat="",
CategoryAxisTimeFormat="",
SeriesAxisNumberFormat="",
SeriesAxisDateFormat="",
SeriesAxisDateTimeFormat="",
SeriesAxisTimeFormat="",
NumericCategoryAxis=false,
MergeAxis=true,
SeriesAlias="default,default",
SeriesSubType=",",
SeriesColumnType="Cube,Cube",
SeriesMin="default,default",
SeriesMax="default,default",
SeriesColor="#3366ff,#993300",
SeriesFunctionMetaData="true,true",
ShowSeriesDataLabels="false,false",
LegendPosition=Top Right,
LegendWidthType=Exact,
LegendWidth=100,
LegendHeightType=Fit,
LegendHeight=160,
ShowFixedCategoryCount=true,
FixedCategoryCount=0'
Surface chart needs to clear it's cache (SurfaceSeriesRenderer.clearCache()) when fitToImage is toggled since the axes are being modified.
Regarding the second example (3D-100-Stacked-Area-Chart-SQL-Script.html):
Fit-to-image modifies the chart width & height properties (which changes the grid width & height dimensions) to make the chart match the aspect ratio of the image area.
Once these values are modified, we don't store the original values to revert if the user clicks Fit-to-Image a second time.
The problem of rendering the surface chart outside the grid was fixed, but this might need a separate issue (tracking previous width/height to restore if user toggles fit-to-image).
Regarding the second example (3D-100-Stacked-Area-Chart-SQL-Script.html):
Fit-to-image modifies the chart width & height properties (which changes the grid width & height dimensions) to make the chart match the aspect ratio of the image area.
Once these values are modified, we don't store the original values to revert if the user clicks Fit-to-Image a second time.
The problem of rendering the surface chart outside the grid was fixed, but this might need a separate issue (tracking previous width/height to restore if user toggles fit-to-image).
Issue #8066 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
1 issue link |
relates to #8097
Issue #8097tracking previous width/height to restore if user toggles fit-to-image |
Surface chart needs to clear it's cache (SurfaceSeriesRenderer.clearCache()) when fitToImage is toggled since the axes are being modified.