XEROF

 

xlsgen 3.5 build #19 : Sparklines


Build 3.5.0.19 of xlsgen adds native support for sparklines in the object model so anyone can create, modify and delete sparklines introduced in Excel 2010.


native support for sparklines in xlsgen


Sparklines in Excel have the following features :

  • attached to a range of data
  • is either straight lines, columns, or plus-minus columns (otherwise known as win-loss columns)
  • can have custom color elements (values, negative values, axis, markers, first value, last value, maximum value, minimum value)
  • can stress one or more specific points (markers, maximum, minimum, first value, last value, negative values)
  • can have a custom line weight for sparklines made of straight lines
  • can have a custom date axis (defined by a range)
  • can have custom minimum and maximum values
  • can render empty or invisible data in cells differently



(C# code)

worksheet.set_Number(6,3, 13);
worksheet.set_Number(7,3 24);
worksheet.set_Number(8,3, 15);
worksheet.set_Number(9,3, 17);
worksheet.set_Number(10,3, 19);

// new sparkline (straight lines)
IXlsSparkline sp = worksheet.Sparklines.Add(enumSparklineType.sparklinetype_line);
IXlsSparklineElement sp_data = sp0.Add();
sp_data.DataAsRange(6,3,10,3); // row1, col1, row2, col2
sp_data.LocationRow = 11;
sp_data.LocationColumn = 3;

// formatting
sp.ShowMaximumValue = true;
sp.set_SparklineColor(enumSparklineElement.sparklineelement_values, 0xFF0000);

Posted on 17-February-2014 22:04 | Category: xlsgen, Excel generator | comment[0] | trackback[0]

 

 

<-- previous page

< February >
0102030405
0607080910
1112131415
1617181920
2122232425
262728



 

 

This site
Home
Articles

DevTools
CPU-Z
EditPlus
ExplorerXP
Kill.exe
OllyDbg
DependencyWalker
Process Explorer
autoruns.exe
Araxis
COM Trace injection
CodeStats
NetBrute
FileMon/Regmon
BoundsChecker
AQTime profiler
Source monitor
GDI leaks tracking
Rootkit revealer
Rootkit removal
RunAsLimitedUser(1)
RunAsLimitedUser(2)

 

 

Liens
Le Plan B
Un jour à Paris
Meneame
Rezo.net (aggr)
Reseau voltaire
Cuba solidarity project
Le grand soir
L'autre journal
Le courrier suisse
L'Orient, le jour
Agoravox (aggr)