0.2.311 β€’ Published 13 days ago

oneai-analytics v0.2.311

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

One AI Analytics Treemap

One AI is a NLP as a service platform. Our API enables language comprehension in context, transforming texts from any source into structured data to use in code.

This treemap component is an easy API to display the results of our clustering skill.

Documentation

See the documentation

Getting started

Installation

npm install oneai-analytics

or using yarn

yarn add oneai-analytics

Example

See the online example

import { AnalyticsTreemap } from 'oneai-analytics-treemap';

const MyAnalyticsComponent = () => {
  return (
    <div style={{ display: 'grid', minHeight: '80vh' }}>
      <AnalyticsTreemap clusters={clusters} />
    </div>
  );
};

// clusters are the result of our clustering skill API
const clusters = [
  {
    skill: 'CLUSTER-TOPICS',
    text: 'Buy the dip',
    items_count: 12,
    span_text: 'Buy the dip',
    phrases: [
      {
        text: 'Buy the dip',
        items_count: 9,
        phrases: {
          'Buy the dip': 6,
          'I bought the dip': 2,
          'Buy the dips and hold': 1,
        },
      },
      {
        text: 'Buying The Dip πŸ’Žβœ‹',
        items_count: 3,
        phrases: {
          'Buying The Dip πŸ’Žβœ‹': 1,
          'Bought the Dip πŸš€πŸ¦': 1,
          'BUYING THE DIP! πŸš€πŸš€πŸš€': 1,
        },
      },
    ],
  },
  {
    skill: 'CLUSTER-TOPICS',
    text: 'SndlπŸš€πŸš€πŸš€',
    items_count: 4,
    span_text: 'SndlπŸš€πŸš€πŸš€',
    phrases: [
      {
        text: 'SndlπŸš€πŸš€πŸš€',
        items_count: 2,
        phrases: {
          'SndlπŸš€πŸš€πŸš€': 1,
          'πŸ’Ž': 1,
        },
      },
      {
        text: 'πŸ’ŽπŸ™ŒπŸ™ŒπŸ™ŒπŸ’Ž. πŸ¦πŸš€',
        items_count: 2,
        phrases: {
          'πŸ’ŽπŸ™ŒπŸ™ŒπŸ™ŒπŸ’Ž. πŸ¦πŸš€': 1,
          '🦍. πŸ’ŽπŸ™Œ': 1,
        },
      },
    ],
  },
];

Support

Feel free to submit issues in this repo, contact us at devrel@oneai.com, or chat with us on Discord

Contribute

PRs are welcomed!

First, clone the repo and install dependencies.

Develop:

yarn start

Test:

yarn test

Publish:

yarn publish

Run the exmaple:

cd example
yarn install
yarn start
0.2.311

13 days ago

0.2.310

1 month ago

0.2.309

1 month ago

0.2.308

2 months ago

0.2.306

2 months ago

0.2.307

2 months ago

0.2.305

2 months ago

0.2.304

3 months ago

0.2.303

3 months ago

0.2.302

3 months ago

0.2.301

4 months ago

0.2.300

10 months ago

0.2.299

10 months ago

0.2.298

11 months ago

0.2.297

1 year ago

0.2.296

1 year ago

0.2.295

1 year ago

0.2.294

1 year ago

0.2.27

1 year ago

0.2.26

1 year ago

0.2.25

1 year ago

0.2.24

1 year ago

0.2.23

1 year ago

0.2.293

1 year ago

0.2.292

1 year ago

0.2.291

1 year ago

0.2.29

1 year ago

0.2.28

1 year ago

0.1.96

2 years ago

0.1.97

2 years ago

0.1.98

2 years ago

0.2.22

1 year ago

0.1.93

2 years ago

0.2.21

1 year ago

0.1.94

2 years ago

0.1.95

2 years ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.92

2 years ago

0.1.91

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago