Link to home
Start Free TrialLog in
Avatar of williecg
williecgFlag for United States of America

asked on

What is the vbnet instructions to change color and size

Below is the aspnet aspx code for a scatter chart.

I need to change the size and color of the dots with vbnet.

What is the vbnet instruction to do that. I believe there will be 2 commands changing the style. However I have not been able to locate it on the web.

Thank you for your help.

Cliff


===============================================

            <asp:Chart ID="Chart1" runat="server" DataSourceID="AccessDataSource_AOAM" BackColor="Tan" Width="600px" Height="500px" BorderlineColor="Black" BorderlineDashStyle="Solid" BorderlineWidth="2" CssClass="auto-style146" style="z-index: 1; position: absolute; top: 79px; left: 10px">


                <Series>


  <asp:Series ChartType="Point" Name="AM" XValueMember="SqFt_AM" YValueMembers="lprx" ChartArea="chart_bp1_Area1" MarkerColor="Black" MarkerSize="7" MarkerStyle="Square">

                    </asp:Series>


                    <asp:Series ChartType="point" Name="BM" XValueMember="SqFt_BM" YValueMembers="lprx" ChartArea="chart_bp1_Area1" MarkerColor="Red" MarkerSize="12" MarkerStyle="Circle">

                    </asp:Series>

                </Series>



                <ChartAreas>

                    <asp:ChartArea Name="chart_bp1_Area1">

                    </asp:ChartArea>

                </ChartAreas>


            </asp:Chart>


ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of williecg

ASKER

very helpful, thank you. I used it to get the exact commands.

       Chart1.Series("BM").MarkerColor = System.Drawing.Color.Red
        Chart1.Series("BM").MarkerSize = 12

        Chart1.Series("AM").MarkerColor = System.Drawing.Color.Black
        Chart1.Series("AM").MarkerSize = 3