找回密码
 立即注册

QQ登录

只需一步,快速开始

rijun

高级会员

55

主题

228

帖子

1115

积分

高级会员

积分
1115

活字格认证微信认证勋章

rijun
高级会员   /  发表于:2016-3-30 11:15  /   查看:3926  /  回复:3
如题,就是说下图中那些点的大小是否有什么属性能控制(放大缩小)?


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

3 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2016-3-30 12:23:30
沙发
谢谢反馈。
MarkerType属性可以改变形状。
文档参考:
http://helpcentral.componentone.com/nethelp/c1scatterchartwijmo/
示例在文档中路径:Scatter Chart Elements > Series
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
rijun
高级会员   /  发表于:2016-3-30 13:56:42
板凳
Alice 发表于 2016-3-30 12:23
谢谢反馈。
MarkerType属性可以改变形状。
文档参考:

hi Alice  我的意思是比如图中的圆点,是否可以变的大一点或者小一点,不是说改变它的形状,MarkerType改变的是形状,圆的变三角或者菱形。。。
回复 使用道具 举报
gw0506
超级版主   /  发表于:2016-3-30 16:12:56
地板
可以修改,你在文档里查一下 Annotations 。
另外,ControlExplorer中也有相关例子。

  1. <%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="Annotation.aspx.cs" Inherits="ControlExplorer.C1ScatterChart.Annotation" %>
  2. <%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls.C1Chart" TagPrefix="wijmo" %>
  3. <%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls" TagPrefix="wijmo" %>
  4. <%@ Register assembly="C1.Web.Wijmo.Controls.4" namespace="C1.Web.Wijmo.Controls.C1TreeView" tagprefix="wijmo" %>
  5. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  6. </asp:Content>
  7. <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  8.         <wijmo:C1ScatterChart ID="C1ScatterChart1" runat="server" Height="475" Width="756">
  9.                 <Hint>
  10.                         <Content Function="hintContent" />
  11.                 </Hint>
  12.                 <SeriesTransition Duration="2000" Enabled="false"></SeriesTransition>
  13.                 <Animation Duration="2000" Enabled="false"></Animation>
  14.                 <SeriesStyles>
  15.                         <wijmo:ChartStyle Stroke="#AFE500">
  16.                                 <Fill Color="#AFE500">
  17.                                 </Fill>
  18.                         </wijmo:ChartStyle>
  19.                         <wijmo:ChartStyle Stroke="#FF9900">
  20.                                 <Fill Color="#FF9900">
  21.                                 </Fill>
  22.                         </wijmo:ChartStyle>
  23.                 </SeriesStyles>
  24.                 <Header Text="Height Versus Weight of 7 Individuals by Gender">
  25.                 </Header>
  26.                 <Footer Compass="South" Visible="False">
  27.                 </Footer>
  28.                 <Legend Visible="true">
  29.                         <Size Width="30" Height="3"></Size>
  30.                 </Legend>
  31.                 <Axis>
  32.                         <X Text="Height (cm)">
  33.                                 <Labels>
  34.                                         <AxisLabelStyle FontSize="11pt" Rotation="-45">
  35.                                                 <Fill Color="#7F7F7F">
  36.                                                 </Fill>
  37.                                         </AxisLabelStyle>
  38.                                 </Labels>
  39.                                 <GridMajor Visible="false"></GridMajor>
  40.                                 <TickMajor Position="Outside">
  41.                                         <TickStyle Stroke="#7F7F7F" />
  42.                                 </TickMajor>
  43.                         </X>
  44.                         <Y Compass="West" Text="Weight (kg)" Visible="true">
  45.                                 <Labels TextAlign="Center">
  46.                                         <AxisLabelStyle FontSize="11pt">
  47.                                                 <Fill Color="#7F7F7F">
  48.                                                 </Fill>
  49.                                         </AxisLabelStyle>
  50.                                 </Labels>
  51.                                 <GridMajor Visible="True">
  52.                                         <GridStyle Stroke="#353539" StrokeDashArray="- "></GridStyle>
  53.                                 </GridMajor>
  54.                                 <TickMajor Position="Outside">
  55.                                         <TickStyle Stroke="#7F7F7F" />
  56.                                 </TickMajor>
  57.                                 <TickMinor Position="Outside">
  58.                                         <TickStyle Stroke="#7F7F7F" />
  59.                                 </TickMinor>
  60.                         </Y>
  61.                 </Axis>
  62.                 <Annotations>
  63.                         <wijmo:TextAnnotation Attachment="Relative" Offset="0, 0" Text="Text Annotation" Tooltip="Text Annotation">
  64.                                 <Point>
  65.                                         <X DoubleValue="0.5" />
  66.                                         <Y DoubleValue="0.15" />
  67.                                 </Point>
  68.                                 <AnnotationStyle FontSize="20" FontWeight="Bold">
  69.                                         <Fill Color="#FF66FF" > </Fill >
  70.                                 </AnnotationStyle>
  71.                         </wijmo:TextAnnotation>
  72.                         <wijmo:RectAnnotation Attachment="DataIndex" Content="Rect" Height="30" Offset="0, 0" Position="Center, Bottom" Tooltip="Rect" Width="60" PointIndex="4">
  73.                                 <AnnotationStyle FillOpacity="0.25">
  74.                                         <Fill Color="#CC99FF" > </Fill >
  75.                                 </AnnotationStyle>
  76.                         </wijmo:RectAnnotation>
  77.                         <wijmo:EllipseAnnotation Attachment="DataIndex" Content="Ellipse" Height="35" Offset="0, 0" Tooltip="Ellipse" Width="75" PointIndex="6">
  78.                                 <AnnotationStyle FillOpacity="0.15">
  79.                                         <Fill Color="#9966FF" > </Fill >
  80.                                 </AnnotationStyle>
  81.                         </wijmo:EllipseAnnotation>
  82.                         <wijmo:CircleAnnotation Content="Circle" Offset="0, 0" Tooltip="Circle">
  83.                                 <Point>
  84.                                         <X DoubleValue="200" />
  85.                                         <Y DoubleValue="100" />
  86.                                 </Point>
  87.                                 <AnnotationStyle FillOpacity="0.2">
  88.                                         <Fill Color="#666699" > </Fill >
  89.                                 </AnnotationStyle>
  90.                         </wijmo:CircleAnnotation>
  91.                         <wijmo:ImageAnnotation Attachment="DataIndex" Href="./../Images/wijmo.png" Offset="0, 0" PointIndex="5" SeriesIndex="0" Tooltip="Image">
  92.                         </wijmo:ImageAnnotation>
  93.                         <wijmo:PolygonAnnotation Offset="0, 0" Tooltip="Polygon" Content="Polygon">
  94.                                 <Points>
  95.                                         <wijmo:PointF X="200" Y="0" />
  96.                                         <wijmo:PointF X="150" Y="50" />
  97.                                         <wijmo:PointF X="175" Y="100" />
  98.                                         <wijmo:PointF X="225" Y="100" />
  99.                                         <wijmo:PointF X="250" Y="50" />
  100.                                 </Points>
  101.                                 <AnnotationStyle FillOpacity="0.25">
  102.                                         <Fill Color="#9966FF" > </Fill >
  103.                                 </AnnotationStyle>
  104.                         </wijmo:PolygonAnnotation>
  105.                         <wijmo:SquareAnnotation Attachment="DataIndex" Content="Square" Offset="0, 0" PointIndex="2" SeriesIndex="0" Tooltip="Square">
  106.                                 <AnnotationStyle FillOpacity="0.2">
  107.                                         <Fill Color="#66FFFF" > </Fill >
  108.                                 </AnnotationStyle>
  109.                         </wijmo:SquareAnnotation>
  110.                         <wijmo:LineAnnotation Content="Line" End="100, 100" Offset="0, 0" Start="10, 10" Tooltip="Line">
  111.                         </wijmo:LineAnnotation>
  112.                 </Annotations>
  113.         </wijmo:C1ScatterChart>
  114.         <script type="text/javascript">
  115.                 function hintContent() {
  116.                         return this.x + ' cm, ' + this.y + ' kg';
  117.                 }
  118.         </script>
  119. </asp:Content>
  120. <asp:Content ID="Content3" ContentPlaceHolderID="ControlOptions" runat="server">
  121. </asp:Content>
  122. <asp:Content ID="Content4" ContentPlaceHolderID="Description" runat="server">
  123.         <p>
  124.                 This sample demonstrates how to add annotation in the <strong>C1ScatterChart</strong>.
  125.         </p>
  126.         <h3>Test the features</h3>
  127.         <ul>
  128.                 <li>Hover over mouse over annotation to see the tooltip.</li>
  129.                 <li>Click the legend item to toggle the visibility.</li>
  130.         </ul>
  131. </asp:Content>
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部