C#图表,如何对焦点(设置在中间)? [英] C# Chart, how to focs (set middle) on point?

查看:260
本文介绍了C#图表,如何对焦点(设置在中间)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我有用C#实现的图表,想知道如何将图表集中在1点上吗?我的意思是我希望该点仍在图表的中间:
如果您不明白我的意思,请检查img:
http://www.fotoszok.pl/upload/f7269578.png [

Hi.
I have chart implemented in C#, and want to know how to focus chart on 1 point? I mean i want that point to be still in the middle of chart:
If u dont understand what i mean, check img:
http://www.fotoszok.pl/upload/f7269578.png[^]


Thank you! ;-)

推荐答案

我不知道您使用什么图表库,但是这个问题可以通过……一点点思考来解决.
基本上,它可以像坐标系的简单平移一样简单(按常数值平移).或是将翻译与膨胀缩放比例结合使用(您没有解释如何将左图转换为右图的任何细节),这就是为什么我说也许").

http://en.wikipedia.org/wiki/Parallel_shift [ http://en.wikipedia.org/wiki/Scaling_%28geometry%29 [ ^ ],
http://en.wikipedia.org/wiki/Linear_transformation [ http://en.wikipedia.org/wiki/Coordinate_transformation#Transformations [
I have no idea what charting library do you use, but this problem is solved by… little thinking.
Basically, it can be as simple as a simple translation of coordinate system (a shift by constant value). Or maybe a combination of translation with dilation or scaling (you did not explain any detail on how you left graph should be transformed to a right one), that''s why I say "maybe").

http://en.wikipedia.org/wiki/Parallel_shift[^],
http://en.wikipedia.org/wiki/Scaling_%28geometry%29[^],
http://en.wikipedia.org/wiki/Linear_transformation[^],
http://en.wikipedia.org/wiki/Coordinate_transformation#Transformations[^].

Nothing here is beyond high school.

—SA


仍需要帮助.
问题是:
http://i50.tinypic.com/2aakcwj.png [ http://i50.tinypic.com/28kiygz.png [ http://i46.tinypic.com/34t3d43.png [
Still need help.
The thing is that:
http://i50.tinypic.com/2aakcwj.png[^]
There is points with very little values (-2,000e-10... etc).
So when ill add there points with values (10,10), (20,20), (30,30) its look like that:
http://i50.tinypic.com/28kiygz.png[^]

So basically i want something like that:
http://i46.tinypic.com/34t3d43.png[^]
where i can see all previous loaded data points, and also the biggest values.


这篇关于C#图表,如何对焦点(设置在中间)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆