Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the MAP chart, when the mapping value is non numerical the chart displays no data. #23

Open
shirofuji opened this issue May 14, 2022 · 0 comments

Comments

@shirofuji
Copy link

const data = {
  // This is the data you get back from the Domo Data API
  rows: [
    ['Utah', 'Hello'],
    ['California', 'Hello'],
    ['South Dakota', 'Hi'],
    ['Illinois', 'Hi'],
    ['Wisconsin', 'Hi'],
    ['Washington', 'Hi'],
    ['Oregon', 'Hi']
  ],
  // You provide the names, types, and mappings of your ordered columns
  columns: [
    {
      type: DomoPhoenix.DATA_TYPE.STRING,
      name: 'State',
      mapping: DomoPhoenix.MAPPING.ITEM
    },
    {
      type: DomoPhoenix.DATA_TYPE.STRING,
      name: 'test',
      mapping: DomoPhoenix.MAPPING.VALUE,
    }
  ]
};

const options = { /* ... */ };

// Create the Phoenix Chart
const chart = new DomoPhoenix.Chart(DomoPhoenix.CHART_TYPE.MAP_UNITED_STATES, data, options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant