apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.18k stars 19.61k forks source link

[Feature] Add possibility to control initial scene for 3d Graph #19030

Open Alfavisioner opened 1 year ago

Alfavisioner commented 1 year ago

What problem does this feature solve?

I need to move graph slightly up at start like on the second screenshot. Because a lot of space at the top is unused. Graph

I may change position top and position bottom of grid box. It will move box BUT part of chart space is being cropped (look at the bottom). It is not feature i need. Graph2

Suggest to add posibility to control initial scene for 3D charts.

What does the proposed API look like?

Sometning like opts.CameraOpts: scatter3d = ( Scatter3D() .add("", data) .set_global_opts( title_opts=opts.TitleOpts(title="3D Scatter Plot Example"), visualmap_opts=opts.VisualMapOpts(range_color=["#FFFFFF", "#FF0000"]),

Configure initial zoom settings using CameraOpts

    camera_opts=opts.CameraOpts(
        distance=100,    # Initial distance from the chart
        elevation=30,    # Initial elevation angle
        azimuth=30       # Initial azimuth angle
    )
)

)

            ))))
echarts-bot[bot] commented 1 year ago

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.

helgasoft commented 1 year ago

Zoom control is thru grid3D.viewControl.distance, see also center.

Alfavisioner commented 1 year ago

Zoom control is thru grid3D.viewControl.distance, see also center.

Thank you for help. Distance work, but changing center it is not what i need.