CSV to html -custom title
Original
Sweden | 1.6% | 2.2% | 3.2% | 4.5% | 6.9% |
Norway | -6.6% | 1.2% | 1.4% | 1.9% | 2.0% |
Finland | -16.6% | -14.2% | 10.2% | 11.0% | 13.2% |
Iceland | 6.6% | 6.2% | 7.2% | 11.0% | 16.2% |
Denmark | -2.6% | 0% | 2.6% | 2.9% | 2.11% |
This custom title is always set at leftmost upper corner.
Shortcode
[csvtohtml_create title="Nordic stats" source_type="visualizer_plugin" path="csvfiles" source_files="sweden;norway;finland;iceland;denmark"]
Sweden | 1.6% | 2.2% | 3.2% | 4.5% | 6.9% |
Norway | -6.6% | 1.2% | 1.4% | 1.9% | 2.0% |
Finland | -16.6% | -14.2% | 10.2% | 11.0% | 13.2% |
Iceland | 6.6% | 6.2% | 7.2% | 11.0% | 16.2% |
Denmark | -2.6% | 0% | 2.6% | 2.9% | 2.11% |
Some styling (through css)
csvtohtmlstyle1 is the ID of the generated table. colset-X indicates which column and .rowset indicates which row that could be used to find a certain cell.
CSS
#csvtohtmlstyle1 th.colset-1 { //Table header column 1
background: red !important; //Red background on custom title
}
#csvtohtmlstyle1 .rowset-4 .colset-4 { //row 4 and column 4
font-weight: 700; //Bold on 7.2% in example below
}
Shortcode
[csvtohtml_create create html_id="csvtohtmlstyle1" title="Nordic stats" source_type="visualizer_plugin" path="csvfiles" source_files="sweden;norway;finland;iceland;denmark"]
Sweden | 1.6% | 2.2% | 3.2% | 4.5% | 6.9% |
Norway | -6.6% | 1.2% | 1.4% | 1.9% | 2.0% |
Finland | -16.6% | -14.2% | 10.2% | 11.0% | 13.2% |
Iceland | 6.6% | 6.2% | 7.2% | 11.0% | 16.2% |
Denmark | -2.6% | 0% | 2.6% | 2.9% | 2.11% |