Shmew / Feliz.Plotly

Fable bindings written in the Feliz-style for plotly.js.
https://shmew.github.io/Feliz.Plotly/
MIT License
54 stars 13 forks source link

Dealing with multiple typed inputs #10

Closed Shmew closed 5 years ago

Shmew commented 5 years ago

The table trace expects a string and/or number array as a data array. Need to figure out how best to implement this without it being a hassle.

Example would be a table with rows like this:

var values = [
      ['Salaries', 'Office', 'Merchandise', 'Legal', '<b>TOTAL</b>'],
      [1200000, 20000, 80000, 2000, 12120000],
      [1300000, 20000, 70000, 2000, 130902000],
      [1300000, 20000, 120000, 2000, 131222000],
      [1400000, 20000, 90000, 2000, 14102000]]

Note that the top row is not a header.

Shmew commented 5 years ago

I deployed a working version to fix this, but I'm not very satisfied with the implementation.

@Zaid-Ajaj any tips here? Here is a working example.

Also to note: so far at least, I've only seen tables use this type of input. I doubt people will really use this feature much when there are way better table components out there.

Shmew commented 5 years ago

Resolved enough until someone suggests a better API in v0.15.0