SetValue ( 3, 4, 60 ) //Sets chart data - Row4 chart. SetValue ( 2, 4, 80 ) //Sets chart data - Row3 chart. SetValue ( 1, 4, "March" ) //Sets chart data - Row2 chart. ChartTitle = "Sales Analysis" //Sets chart data - Row1 chart. AddChart ( 100, 10, 700, 500 ) //Specifies the chart title chart. Blank ) //Adds chart to the slide with position and size IPresentationChart chart = slide. Create () //Adds a blank slide to the Presentation ISlide slide = pptxDoc. Creates a Presentation instance IPresentation pptxDoc = Presentation. Save ( "sample.pptx" ) 'Closes the Presentation pptxDoc. Column_Clustered 'Adds the third slide into the Presentation pptxDoc. ChartData ( 2, 1, 4, 1 ) 'Specifies the chart type chart. ChartData ( 2, 4, 4, 4 ) 'Sets the data range of the category axis chart. Add ( "March" ) 'Sets the data range of chart series – start row, start column, end row, end column seriesMarch. ChartData ( 2, 3, 4, 3 ) 'Creates a new chart series with the name Dim seriesMarch As IOfficeChartSerie = chart. Add ( "Feb" ) 'Sets the data range of chart series – start row, start column, end row, end column seriesFeb. ChartData ( 2, 2, 4, 2 ) 'Creates a new chart series with the name Dim seriesFeb As IOfficeChartSerie = chart. Add ( "Jan" ) 'Sets the data range of chart series – start row, start column, end row, end column seriesJan. SetValue ( 4, 4, 80 ) 'Creates a new chart series with the name Dim seriesJan As IOfficeChartSerie = chart. SetValue ( 3, 4, 60 ) 'Sets chart data - Row4 chart. SetValue ( 2, 4, 80 ) 'Sets chart data - Row3 chart. SetValue ( 1, 4, "March" ) 'Sets chart data - Row2 chart. ChartTitle = "Sales Analysis" 'Sets chart data - Row1 chart. AddChart ( 100, 10, 700, 500 ) 'Specifies the chart title chart. Blank ) 'Adds chart to the slide with position and size Dim chart As IPresentationChart = slide. Create () 'Adds a blank slide to the Presentation Dim slide As ISlide = pptxDoc. 'Creates a Presentation instance Dim pptxDoc As IPresentation = Presentation. Save ( "sample.pptx" ) //Closes the Presentation pptxDoc. Column_Clustered //Adds the third slide into the Presentation pptxDoc. ChartData //Specifies the chart type chart. ChartData //Sets the data range of the category axis chart. Add ( "March" ) //Sets the data range of chart series – start row, start column, end row, end column seriesMarch. ChartData //Creates a new chart series with the name IOfficeChartSerie seriesMarch = chart. Add ( "Feb" ) //Sets the data range of chart series – start row, start column, end row, end column seriesFeb. ChartData //Creates a new chart series with the name IOfficeChartSerie seriesFeb = chart. Add ( "Jan" ) //Sets the data range of chart series – start row, start column, end row, end column seriesJan. SetValue ( 4, 4, 80 ) //Creates a new chart series with the name IOfficeChartSerie seriesJan = chart.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |